Skip to content

Commit 552d881

Browse files
authored
1 parent ad69426 commit 552d881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyenv-users

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ for link in "${links[@]}"; do
4444
# `$link` is the `python` symlink, and `$target` is its target.
4545
target=$(readlink -f "$link")
4646
# Ignore symlinks inside $PYENV_ROOT itself
47-
if echo "$link" | grep -v -q "$PYENV_ROOT"; then
47+
if realpath -s "$link" | grep -v -q "$PYENV_ROOT"; then
4848
[[ "$target" =~ $regex ]]
4949
version="${BASH_REMATCH[1]}"
5050
echo "$version":"${link%/bin/python}"

0 commit comments

Comments
 (0)