app/Console/cake is not pwd sensitive

the app dir does not need to be guessed based on the pwd - derive
from the path to the executable
This commit is contained in:
AD7six 2013-01-06 22:09:07 +01:00
parent ea3fa67c79
commit 967526540a
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ canonicalize() {
}
CONSOLE=$(dirname -- "$(canonicalize "$0")")
APP=`pwd`
APP=$(dirname "$CONSOLE")
exec php -q "$CONSOLE"/cake.php -working "$APP" "$@"
exit

View file

@ -35,7 +35,7 @@ canonicalize() {
}
CONSOLE=$(dirname -- "$(canonicalize "$0")")
APP=`pwd`
APP=$(dirname "$CONSOLE")
exec php -q "$CONSOLE"/cake.php -working "$APP" "$@"
exit