mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix path resolution when app dir has been renamed.
This solves path resolution when the default app dir has bee renamed, and a relative path is used to run `cake` Fixes #3474
This commit is contained in:
parent
6af78c15df
commit
fe2f56e8bd
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,10 @@
|
|||
# Canonicalize by following every symlink of the given name recursively
|
||||
canonicalize() {
|
||||
NAME=$1
|
||||
if [ -f "$NAME" ]
|
||||
then
|
||||
NAME=$(cd -P -- "$(dirname -- "$NAME")" && pwd -P)/$(basename -- "$NAME")
|
||||
fi
|
||||
while [ -h "$NAME" ]; do
|
||||
DIR=$(dirname -- "$NAME")
|
||||
SYM=$(readlink "$NAME")
|
||||
|
|
Loading…
Reference in a new issue