Skip to content

Commit

Permalink
Update sake
Browse files Browse the repository at this point in the history
Fix bug in sake that happens when the PHP interpreter is a directory with spaces in it.
  • Loading branch information
digitall-it authored Jun 22, 2024
1 parent dcace43 commit 90eac66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fi

# Find the PHP binary
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`
break
fi
Expand Down Expand Up @@ -116,4 +116,4 @@ fi
################################################################################################
## Basic execution

$php $framework/cli-script.php ${*}
"$php" "$framework/cli-script.php" "${@}"

0 comments on commit 90eac66

Please sign in to comment.