Pārlūkot izejas kodu

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

pull/10/head
Yamashita Yuu pirms 13 gadiem
vecāks
revīzija
ea7dc5f1e1
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      libexec/pyenv-version-name

+ 1
- 1
libexec/pyenv-version-name Parādīt failu

@ -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

Notiek ielāde…
Atcelt
Saglabāt