ENHANCEMENT: Fixed sapphire execution if you run the uninstalled sake from a foreigh directory. (from r88533)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@89182 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-10-15 22:24:17 +00:00
parent 3965ac5237
commit 8db398a409
1 changed files with 5 additions and 1 deletions

6
sake
View File

@ -8,7 +8,11 @@ Executes a Sapphire command"
fi
# Set $sapphire and $base
if [ -d ./sapphire ]; then
sakedir=`dirname $0`
if [ -f $sakedir/cli-script.php ]; then
sapphire=$sakedir
base=`dirname $sakedir`
elif [ -d ./sapphire ]; then
sapphire=./sapphire
base=.
elif [ -f ./cli-script.php ]; then