From a797bb6d881ae9f4665ee816d23460336a241166 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 6 Nov 2014 17:57:17 +0100 Subject: [PATCH] Fix "pyenv: version 'system' is not installed" with `pyenv which` This is a follow-up to de5c61c. --- libexec/pyenv-which | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libexec/pyenv-which b/libexec/pyenv-which index 3511aa33..65dad241 100755 --- a/libexec/pyenv-which +++ b/libexec/pyenv-which @@ -59,8 +59,11 @@ done if [ -x "$PYENV_COMMAND_PATH" ]; then echo "$PYENV_COMMAND_PATH" else + any_not_installed=0 for version in "${versions[@]}"; do - any_not_installed=0 + if [ "$version" = "system" ]; then + continue + fi if ! [ -d "${PYENV_ROOT}/versions/${version}" ]; then echo "pyenv: version \`$version' is not installed" >&2 any_not_installed=1