mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
Fix not showing symlink contents for unselected versions in pyenv versions
(#2675)
This commit is contained in:
parent
5a8dbcf143
commit
20189ff06f
2 changed files with 6 additions and 4 deletions
|
@ -121,7 +121,7 @@ print_version() {
|
||||||
elif (( ${BASH_VERSINFO[0]} <= 3 )) && exists "$1" "${current_versions[@]}"; then
|
elif (( ${BASH_VERSINFO[0]} <= 3 )) && exists "$1" "${current_versions[@]}"; then
|
||||||
echo "${hit_prefix}${version_repr} (set by $(pyenv-version-origin))"
|
echo "${hit_prefix}${version_repr} (set by $(pyenv-version-origin))"
|
||||||
else
|
else
|
||||||
echo "${miss_prefix}$1"
|
echo "${miss_prefix}${version_repr}"
|
||||||
fi
|
fi
|
||||||
num_versions=$((num_versions + 1))
|
num_versions=$((num_versions + 1))
|
||||||
}
|
}
|
||||||
|
|
|
@ -238,11 +238,13 @@ OUT
|
||||||
|
|
||||||
@test "non-bare output shows symlink contents" {
|
@test "non-bare output shows symlink contents" {
|
||||||
create_version "1.9.0"
|
create_version "1.9.0"
|
||||||
create_alias "link" "foo/bar"
|
create_alias "link" "1.9.0"
|
||||||
|
|
||||||
run pyenv-versions
|
run pyenv-versions
|
||||||
assert_success <<OUT
|
assert_success
|
||||||
|
assert_output <<OUT
|
||||||
|
* system (set by ${PYENV_ROOT}/version)
|
||||||
1.9.0
|
1.9.0
|
||||||
link --> foo/bar
|
link --> 1.9.0
|
||||||
OUT
|
OUT
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue