mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-13 05:43:53 -05:00
fix inverted result of checking version existence (refs #7)
This commit is contained in:
@@ -25,7 +25,7 @@ version_exists() {
|
|||||||
for version in "${versions[@]}"; do
|
for version in "${versions[@]}"; do
|
||||||
PYENV_VERSION_PATH="${PYENV_ROOT}/versions/${version}"
|
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
|
echo "pyenv: version \`$version' is not installed" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user