Skip to content

Commit 8286880

Browse files
committed
Return control to pyenv-uninstall in uninstall/envs.bash
Fixes #320
1 parent 294f64f commit 8286880

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

etc/pyenv.d/uninstall/envs.bash

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ resolve_link() {
55
if [ -n "${DEFINITION}" ]; then
66
if [[ "${DEFINITION}" != "${DEFINITION%/envs/*}" ]]; then
77
# Uninstall virtualenv by long name
8-
exec pyenv-virtualenv-delete ${FORCE+-f} "${DEFINITION}"
9-
exit 128
8+
pyenv-virtualenv-delete ${FORCE+-f} "${DEFINITION}"
109
else
1110
VERSION_NAME="${VERSION_NAME:-${DEFINITION##*/}}"
1211
PREFIX="${PREFIX:-${PYENV_ROOT}/versions/${VERSION_NAME}}"
@@ -15,8 +14,7 @@ if [ -n "${DEFINITION}" ]; then
1514
REAL_DEFINITION="${REAL_PREFIX#${PYENV_ROOT}/versions/}"
1615
if [[ "${REAL_DEFINITION}" != "${REAL_DEFINITION%/envs/*}" ]]; then
1716
# Uninstall virtualenv by short name
18-
exec pyenv-virtualenv-delete ${FORCE+-f} "${REAL_DEFINITION}"
19-
exit 128
17+
pyenv-virtualenv-delete ${FORCE+-f} "${REAL_DEFINITION}"
2018
fi
2119
else
2220
# Uninstall all virtualenvs inside `envs` directory too
@@ -28,3 +26,4 @@ if [ -n "${DEFINITION}" ]; then
2826
fi
2927
fi
3028
fi
29+
FORCE=t

0 commit comments

Comments
 (0)