Skip to content

Commit

Permalink
Fix pyenv#1118: follow only dir-symlinks
Browse files Browse the repository at this point in the history
This corrects the deffect where pyenv tries to determine an absolute
path of the directory containing a file and follows symlinks
manually. Because of missing check it behaved correctly, but a
misleading error message was shown in the terminal output.

Thanks to @HQJaTu for the patch
  • Loading branch information
webknjaz committed Mar 15, 2018
1 parent 59846ca commit b5068a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/pyenv
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ else
while [ -n "$path" ]; do
cd "${path%/*}"
local name="${path##*/}"
path="$(resolve_link "$name" || true)"
path="$(test -d "$name" && resolve_link "$name" || true)"
done

pwd
Expand Down

0 comments on commit b5068a5

Please sign in to comment.