From cb24e4f2a144011909bc467bf759bf799acd3d90 Mon Sep 17 00:00:00 2001 From: Diego Fernandez Date: Sun, 21 Jul 2019 00:58:52 -0600 Subject: [PATCH] Return control to pyenv-uninstall in uninstall/envs.bash Fixes #320 --- etc/pyenv.d/uninstall/envs.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/pyenv.d/uninstall/envs.bash b/etc/pyenv.d/uninstall/envs.bash index c3dc5dfe..dc9ce950 100644 --- a/etc/pyenv.d/uninstall/envs.bash +++ b/etc/pyenv.d/uninstall/envs.bash @@ -15,8 +15,8 @@ if [ -n "${DEFINITION}" ]; then REAL_DEFINITION="${REAL_PREFIX#${PYENV_ROOT}/versions/}" if [[ "${REAL_DEFINITION}" != "${REAL_DEFINITION%/envs/*}" ]]; then # Uninstall virtualenv by short name - exec pyenv-virtualenv-delete ${FORCE+-f} "${REAL_DEFINITION}" - exit 128 + pyenv-virtualenv-delete ${FORCE+-f} "${REAL_DEFINITION}" + FORCE=t fi else # Uninstall all virtualenvs inside `envs` directory too