Skip to content

Commit

Permalink
Merge pull request #11290 from digitall-it/patch-1
Browse files Browse the repository at this point in the history
Fix #11289: Handle paths with spaces in Silverstripe's sake script
  • Loading branch information
GuySartorelli authored Jun 24, 2024
2 parents dcace43 + 90eac66 commit bdd27b9
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 bdd27b9

Please sign in to comment.