mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
3965ac5237
commit
8db398a409
6
sake
6
sake
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user