From 1c7f56fcf49f142a3cb627198eeb8bb7d847d997 Mon Sep 17 00:00:00 2001 From: Stephen Shkardoon Date: Tue, 17 Sep 2013 14:45:15 +1200 Subject: [PATCH] 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. --- sake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sake b/sake index 9ad1bd998..3c397ae9d 100755 --- a/sake +++ b/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