diff options
Diffstat (limited to 'git-tools/hooks/pre-commit')
| -rwxr-xr-x | git-tools/hooks/pre-commit | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/git-tools/hooks/pre-commit b/git-tools/hooks/pre-commit index 9719b91746..4d03359773 100755 --- a/git-tools/hooks/pre-commit +++ b/git-tools/hooks/pre-commit @@ -27,6 +27,13 @@ fi  error=0  errors="" +if ! which $PHP_BIN >/dev/null 2>&1 +then +	echo "PHP Syntax check failed:" +	echo "PHP binary does not exist or is not in path: $PHP_BIN" +	exit 1 +fi +  # dash does not support $'\n':  # http://forum.soft32.com/linux2/Bug-409179-DASH-Settings-IFS-work-properly-ftopict70039.html  IFS=' | 
