mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/10760] Quote PHP_BIN when using it.
This should make a difference on windows where paths may include spaces. PHPBB3-10760
This commit is contained in:
parent
786fcbf212
commit
b803fc4351
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ fi
|
||||||
error=0
|
error=0
|
||||||
errors=""
|
errors=""
|
||||||
|
|
||||||
if ! which $PHP_BIN >/dev/null 2>&1
|
if ! which "$PHP_BIN" >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
echo "PHP Syntax check failed:"
|
echo "PHP Syntax check failed:"
|
||||||
echo "PHP binary does not exist or is not in path: $PHP_BIN"
|
echo "PHP binary does not exist or is not in path: $PHP_BIN"
|
||||||
|
@ -73,7 +73,7 @@ do
|
||||||
|
|
||||||
# check the staged file content for syntax errors
|
# check the staged file content for syntax errors
|
||||||
# using php -l (lint)
|
# using php -l (lint)
|
||||||
result=$(git cat-file -p $sha | $PHP_BIN -l 2>/dev/null)
|
result=$(git cat-file -p $sha | "$PHP_BIN" -l 2>/dev/null)
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
error=1
|
error=1
|
||||||
|
|
Loading…
Add table
Reference in a new issue