Fix "pyenv: version 'system' is not installed" with pyenv which

This is a follow-up to de5c61c.
This commit is contained in:
Daniel Hahler 2014-11-06 17:57:17 +01:00
parent 665f9d9466
commit a797bb6d88

View file

@ -59,8 +59,11 @@ done
if [ -x "$PYENV_COMMAND_PATH" ]; then
echo "$PYENV_COMMAND_PATH"
else
for version in "${versions[@]}"; do
any_not_installed=0
for version in "${versions[@]}"; do
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