Skip to content
Permalink
Browse files

Also changing shell script in skel directory

  • Loading branch information...
lorenzo committed Oct 15, 2011
1 parent bda8df1 commit f8772dc52453aa461a791c9b378f58c380527cda
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/Cake/Console/Templates/skel/Console/cake
@@ -19,15 +19,15 @@
################################################################################
LIB=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && LIB=$LIB/$(basename -- "$0")

while [ -h $LIB ]; do
while [ -h "$LIB" ]; do
DIR=$(dirname -- "$LIB")
SYM=$(readlink $LIB)
LIB=$(cd $DIR && cd $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
SYM=$(readlink "$LIB")
LIB=$(cd "$DIR" && cd $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
done

LIB=$(dirname -- "$LIB")/
APP=`pwd`

exec php -q ${LIB}cake.php -working "${APP}" "$@"
exec php -q "$LIB"cake.php -working "$APP" "$@"

exit;

0 comments on commit f8772dc

Please sign in to comment.
You can’t perform that action at this time.