1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-16 07:13:53 -05:00

Fix link resolving in pyenv-versions

Co-Authored-by: Ivan Pozdeev <vano@mail.mipt.ru>
This commit is contained in:
laggardkernel
2023-02-06 09:09:26 +03:00
committed by Ivan Pozdeev
parent c8c324afb4
commit a7b181c3ca

View File

@@ -112,7 +112,7 @@ print_version() {
if [[ -L "$path" ]]; then
# Only resolve the link itself for printing, do not resolve further.
# Doing otherwise would misinform the user of what the link contains.
version_repr="$version --> $(resolve_link "$path")"
version_repr="$version --> $(readlink "$path")"
else
version_repr="$version"
fi