From ac8ce10d7834374102ec2d519052539750d6f433 Mon Sep 17 00:00:00 2001 From: Boris Babic Date: Mon, 2 Jan 2017 12:03:27 +0100 Subject: [PATCH] Use env in shebangs --- pre_commit_hooks/php-cbf.sh | 2 +- pre_commit_hooks/php-cs-fixer.sh | 2 +- pre_commit_hooks/php-cs.sh | 2 +- pre_commit_hooks/php-lint.sh | 2 +- pre_commit_hooks/php-unit.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pre_commit_hooks/php-cbf.sh b/pre_commit_hooks/php-cbf.sh index 2b6a02f..f939217 100755 --- a/pre_commit_hooks/php-cbf.sh +++ b/pre_commit_hooks/php-cbf.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Bash PHP Code Beautifier and Fixer Hook # This script fails if the PHP Code Beautifier and Fixer output has the word "ERROR" in it. diff --git a/pre_commit_hooks/php-cs-fixer.sh b/pre_commit_hooks/php-cs-fixer.sh index d95bf3c..47c76e7 100755 --- a/pre_commit_hooks/php-cs-fixer.sh +++ b/pre_commit_hooks/php-cs-fixer.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ################################################################################ # # Bash PHP Coding Standards Fixer diff --git a/pre_commit_hooks/php-cs.sh b/pre_commit_hooks/php-cs.sh index 47060c5..ec1efb7 100755 --- a/pre_commit_hooks/php-cs.sh +++ b/pre_commit_hooks/php-cs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Bash PHP Codesniffer Hook # This script fails if the PHP Codesniffer output has the word "ERROR" in it. diff --git a/pre_commit_hooks/php-lint.sh b/pre_commit_hooks/php-lint.sh index 40ecf5a..46bf521 100755 --- a/pre_commit_hooks/php-lint.sh +++ b/pre_commit_hooks/php-lint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Bash PHP Linter for Pre-commits # diff --git a/pre_commit_hooks/php-unit.sh b/pre_commit_hooks/php-unit.sh index b028df0..d78fffe 100755 --- a/pre_commit_hooks/php-unit.sh +++ b/pre_commit_hooks/php-unit.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Bash PHP Unit Task Runner #