mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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
|
fi
|
||||||
|
|
||||||
# Set $sapphire and $base
|
# 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
|
sapphire=./sapphire
|
||||||
base=.
|
base=.
|
||||||
elif [ -f ./cli-script.php ]; then
|
elif [ -f ./cli-script.php ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user