From 00f7d6249a3f1c07c29fe494cbb9774c4f358dc7 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Sun, 14 Feb 2021 15:50:36 +0300 Subject: [PATCH] Fix not printing asterisk for current version in Bash 3 --- libexec/pyenv-versions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/pyenv-versions b/libexec/pyenv-versions index 47d0898e..2fda7e0b 100755 --- a/libexec/pyenv-versions +++ b/libexec/pyenv-versions @@ -106,7 +106,7 @@ exists() { print_version() { if [[ ${BASH_VERSINFO[0]} -ge 4 && ${current_versions["$1"]} ]]; then echo "${hit_prefix}$1 (set by $(pyenv-version-origin))" - elif (( ${BASH_VERSINFO[0]} < 3 )) && exists "$1" "${current_versions[@]}"; then + elif (( ${BASH_VERSINFO[0]} <= 3 )) && exists "$1" "${current_versions[@]}"; then echo "${hit_prefix}$1 (set by $(pyenv-version-origin))" else echo "${miss_prefix}$1"