Ver a proveniência

Merge pull request #671 from yyuu/issue610

Show meaningful message on missing executable (fixes #610)
pull/673/head
Yamashita, Yuu há 10 anos
committed by GitHub
ascendente
cometimento
4e10692a1e
1 ficheiros alterados com 1 adições e 4 eliminações
  1. +1
    -4
      libexec/pyenv-which

+ 1
- 4
libexec/pyenv-which Ver ficheiro

@ -59,9 +59,6 @@ done
if [ -x "$PYENV_COMMAND_PATH" ]; then
echo "$PYENV_COMMAND_PATH"
elif [ "$PYENV_VERSION" != "system" ] && [ ! -d "${PYENV_ROOT}/versions/${PYENV_VERSION}" ]; then
echo "pyenv: version \`$PYENV_VERSION' is not installed (set by $(pyenv-version-origin))" >&2
exit 1
else
any_not_installed=0
for version in "${versions[@]}"; do
@ -69,7 +66,7 @@ else
continue
fi
if ! [ -d "${PYENV_ROOT}/versions/${version}" ]; then
echo "pyenv: version \`$version' is not installed" >&2
echo "pyenv: version \`$version' is not installed (set by $(pyenv-version-origin))" >&2
any_not_installed=1
fi
done

Carregando…
Cancelar
Guardar