fix inverted result of checking version existence (refs #7)

This commit is contained in:
Yamashita Yuu 2013-02-07 16:50:20 +09:00
parent be53bb8951
commit ea7dc5f1e1

View file

@ -25,7 +25,7 @@ version_exists() {
for version in "${versions[@]}"; do
PYENV_VERSION_PATH="${PYENV_ROOT}/versions/${version}"
if [ "$version" != "system" ] && version_exists "$version"; then
if [ "$version" != "system" ] && ! version_exists "$version"; then
echo "pyenv: version \`$version' is not installed" >&2
exit 1
fi