Skip to content

Commit

Permalink
app/Console/cake is not pwd sensitive
Browse files Browse the repository at this point in the history
the app dir does not need to be guessed based on the pwd - derive
from the path to the executable
  • Loading branch information
AD7six committed Jan 6, 2013
1 parent ea3fa67 commit 9675265
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Console/cake
Expand Up @@ -35,7 +35,7 @@ canonicalize() {
}

CONSOLE=$(dirname -- "$(canonicalize "$0")")
APP=`pwd`
APP=$(dirname "$CONSOLE")

exec php -q "$CONSOLE"/cake.php -working "$APP" "$@"
exit
2 changes: 1 addition & 1 deletion lib/Cake/Console/Templates/skel/Console/cake
Expand Up @@ -35,7 +35,7 @@ canonicalize() {
}

CONSOLE=$(dirname -- "$(canonicalize "$0")")
APP=`pwd`
APP=$(dirname "$CONSOLE")

exec php -q "$CONSOLE"/cake.php -working "$APP" "$@"
exit

0 comments on commit 9675265

Please sign in to comment.