mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix sake not checking all the locations for cli-script.php
Before this, sake wouldn't check the current directory it itself was in. This wasn't a problem with anything but master.
This commit is contained in:
parent
e58a481edf
commit
1c7f56fcf4
6
sake
6
sake
@ -10,7 +10,11 @@ Executes a SilverStripe command"
|
||||
fi
|
||||
|
||||
# find the silverstripe installation
|
||||
if [ -f ./cli-script.php ]; then
|
||||
sakedir=`dirname $0`
|
||||
if [ -f "$sakedir/cli-script.php" ]; then
|
||||
framework="$sakedir"
|
||||
base=`dirname $sakedir`
|
||||
elif [ -f ./cli-script.php ]; then
|
||||
framework=.
|
||||
base=..
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user