mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
fix inverted result of checking version existence (refs #7)
This commit is contained in:
parent
be53bb8951
commit
ea7dc5f1e1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue