mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
ea3fa67c79
commit
967526540a
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ canonicalize() {
|
|||
}
|
||||
|
||||
CONSOLE=$(dirname -- "$(canonicalize "$0")")
|
||||
APP=`pwd`
|
||||
APP=$(dirname "$CONSOLE")
|
||||
|
||||
exec php -q "$CONSOLE"/cake.php -working "$APP" "$@"
|
||||
exit
|
||||
|
|
|
@ -35,7 +35,7 @@ canonicalize() {
|
|||
}
|
||||
|
||||
CONSOLE=$(dirname -- "$(canonicalize "$0")")
|
||||
APP=`pwd`
|
||||
APP=$(dirname "$CONSOLE")
|
||||
|
||||
exec php -q "$CONSOLE"/cake.php -working "$APP" "$@"
|
||||
exit
|
||||
|
|
Loading…
Reference in a new issue