BUG Fix sake path lookup to find vendor framework

Remove legacy sapphire lookup
This commit is contained in:
Damian Mooyman 2017-10-12 15:45:43 +13:00
parent d876e36424
commit 5ccbabd36c
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A
1 changed files with 10 additions and 10 deletions

8
sake
View File

@ -24,12 +24,12 @@ else
directory="$PWD"
base=.
for (( n=${#slashes}; n>0; --n )) do
if [ -d "$directory/framework" ]; then
framework="$directory/framework"
if [ -d "$directory/vendor/silverstripe/framework" ]; then
framework="$directory/vendor/silverstripe/framework"
break
elif [ -d "$directory/sapphire" ]; then
framework="$directory/sapphire"
elif [ -d "$directory/framework" ]; then
framework="$directory/framework"
break
fi