Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit fe2f56e8bd18cac0ca92be3b9e736251d0a96f06 1 parent 6af78c1
@markstory markstory authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Cake/Console/cake
View
4 lib/Cake/Console/cake
@@ -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")

2 comments on commit fe2f56e

@ceeram
Collaborator

all 2.3 builds now fail on jenkins, not sure if this is the actual cause, travis runs fine

@markstory
Owner

Well that's annoying.

Please sign in to comment.
Something went wrong with that request. Please try again.