mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fix issues with bash quoting and directories with spaces.
This commit is contained in:
parent
f81c85d86d
commit
bda8df1b50
2 changed files with 9 additions and 9 deletions
|
@ -19,15 +19,15 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
LIB=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && LIB=$LIB/$(basename -- "$0")
|
LIB=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && LIB=$LIB/$(basename -- "$0")
|
||||||
|
|
||||||
while [ -h $LIB ]; do
|
while [ -h "$LIB" ]; do
|
||||||
DIR=$(dirname -- "$LIB")
|
DIR=$(dirname -- "$LIB")
|
||||||
SYM=$(readlink $LIB)
|
SYM=$(readlink "$LIB")
|
||||||
LIB=$(cd $DIR && cd $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
|
LIB=$(cd "$DIR" && cd $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
|
||||||
done
|
done
|
||||||
|
|
||||||
LIB=$(dirname -- "$LIB")/
|
LIB=$(dirname -- "$LIB")/
|
||||||
APP=`pwd`
|
APP=`pwd`
|
||||||
|
|
||||||
exec php -q ${LIB}cake.php -working "${APP}" "$@"
|
exec php -q "$LIB"cake.php -working "$APP" "$@"
|
||||||
|
|
||||||
exit;
|
exit;
|
||||||
|
|
|
@ -19,15 +19,15 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
LIB=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && LIB=$LIB/$(basename -- "$0")
|
LIB=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && LIB=$LIB/$(basename -- "$0")
|
||||||
|
|
||||||
while [ -h $LIB ]; do
|
while [ -h "$LIB" ]; do
|
||||||
DIR=$(dirname -- "$LIB")
|
DIR=$(dirname -- "$LIB")
|
||||||
SYM=$(readlink $LIB)
|
SYM=$(readlink "$LIB")
|
||||||
LIB=$(cd $DIR && cd $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
|
LIB=$(cd "$DIR" && cd $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
|
||||||
done
|
done
|
||||||
|
|
||||||
LIB=$(dirname -- "$LIB")/
|
LIB=$(dirname -- "$LIB")/
|
||||||
APP=`pwd`
|
APP=`pwd`
|
||||||
|
|
||||||
exec php -q ${LIB}cake.php -working "${APP}" "$@"
|
exec php -q "$LIB"cake.php -working "$APP" "$@"
|
||||||
|
|
||||||
exit;
|
exit;
|
Loading…
Reference in a new issue