Stop delete force failing when virtualenv does not exist (#330)

This commit is contained in:
Joseph Egan
2022-10-10 18:47:19 +00:00
committed by GitHub
parent a911a2223f
commit 7932bb4cc0

View File

@@ -75,7 +75,7 @@ else
if pyenv-virtualenv-prefix "${VERSION_NAME}" 1>/dev/null 2>&1; then
PREFIX="${PYENV_ROOT}/versions/${VERSION_NAME}"
unset COMPAT_PREFIX
else
elif [ -z "$FORCE" ]; then
echo "pyenv-virtualenv: \`${DEFINITION}' is not a virtualenv." 1>&2
exit 1
fi