From 967526540a5f0a92e6c28fdbe5e7f8601dc30b5e Mon Sep 17 00:00:00 2001 From: AD7six Date: Sun, 6 Jan 2013 22:09:07 +0100 Subject: [PATCH] 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 --- app/Console/cake | 2 +- lib/Cake/Console/Templates/skel/Console/cake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/cake b/app/Console/cake index 49f2eaa12..ada924025 100755 --- a/app/Console/cake +++ b/app/Console/cake @@ -35,7 +35,7 @@ canonicalize() { } CONSOLE=$(dirname -- "$(canonicalize "$0")") -APP=`pwd` +APP=$(dirname "$CONSOLE") exec php -q "$CONSOLE"/cake.php -working "$APP" "$@" exit diff --git a/lib/Cake/Console/Templates/skel/Console/cake b/lib/Cake/Console/Templates/skel/Console/cake index 49f2eaa12..ada924025 100644 --- a/lib/Cake/Console/Templates/skel/Console/cake +++ b/lib/Cake/Console/Templates/skel/Console/cake @@ -35,7 +35,7 @@ canonicalize() { } CONSOLE=$(dirname -- "$(canonicalize "$0")") -APP=`pwd` +APP=$(dirname "$CONSOLE") exec php -q "$CONSOLE"/cake.php -working "$APP" "$@" exit