Update sake

Fix bug in sake that happens when the PHP interpreter is a directory with spaces in it.
This commit is contained in:
Giancarlo Di Massa 2024-06-22 18:15:33 +02:00 committed by GitHub
parent dcace43183
commit 90eac66ea8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
sake
View File

@ -42,7 +42,7 @@ fi
# Find the PHP binary # Find the PHP binary
for candidatephp in php php5; do for candidatephp in php php5; do
if [ `which $candidatephp 2>/dev/null` -a -f `which $candidatephp 2>/dev/null` ]; then if [ "`which $candidatephp 2>/dev/null`" -a -f "`which $candidatephp 2>/dev/null`" ]; then
php=`which $candidatephp 2>/dev/null` php=`which $candidatephp 2>/dev/null`
break break
fi fi
@ -116,4 +116,4 @@ fi
################################################################################################ ################################################################################################
## Basic execution ## Basic execution
$php $framework/cli-script.php ${*} "$php" "$framework/cli-script.php" "${@}"