mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 04:23:38 +01:00
Merge branch 'ticket/bantu/9777' into develop-olympus
* ticket/bantu/9777: [ticket/9777] Print error message in pre-commit hook when php is not installed.
This commit is contained in:
commit
0ee49ca432
@ -27,6 +27,13 @@ fi
|
|||||||
error=0
|
error=0
|
||||||
errors=""
|
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':
|
# dash does not support $'\n':
|
||||||
# http://forum.soft32.com/linux2/Bug-409179-DASH-Settings-IFS-work-properly-ftopict70039.html
|
# http://forum.soft32.com/linux2/Bug-409179-DASH-Settings-IFS-work-properly-ftopict70039.html
|
||||||
IFS='
|
IFS='
|
||||||
|
Loading…
x
Reference in New Issue
Block a user