mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #11290 from digitall-it/patch-1
Fix #11289: Handle paths with spaces in Silverstripe's sake script
This commit is contained in:
commit
bdd27b96b7
4
sake
4
sake
@ -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
|
||||
@ -116,4 +116,4 @@ fi
|
||||
################################################################################################
|
||||
## Basic execution
|
||||
|
||||
$php $framework/cli-script.php ${*}
|
||||
"$php" "$framework/cli-script.php" "${@}"
|
||||
|
Loading…
Reference in New Issue
Block a user