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:
Stephen Shkardoon 2013-09-17 14:45:15 +12:00 committed by Will Rossiter
parent e58a481edf
commit 1c7f56fcf4
1 changed files with 5 additions and 1 deletions

6
sake
View File

@ -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