Permalink
Browse files

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
  • Loading branch information...
1 parent ea3fa67 commit 967526540a5f0a92e6c28fdbe5e7f8601dc30b5e @AD7six AD7six committed Jan 6, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/Console/cake
  2. +1 −1 lib/Cake/Console/Templates/skel/Console/cake
View
@@ -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

0 comments on commit 9675265

Please sign in to comment.