Skip to content

Commit 633711a

Browse files
authored
Return control to pyenv-uninstall in uninstall/envs.bash (#321)
1 parent 177eb67 commit 633711a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

etc/pyenv.d/uninstall/envs.bash

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ uninstall_related_virtual_env() {
66
if [ -n "${DEFINITION}" ]; then
77
if [[ "${DEFINITION}" != "${DEFINITION%/envs/*}" ]]; then
88
# Uninstall virtualenv by long name
9-
exec pyenv-virtualenv-delete ${FORCE+-f} "${DEFINITION}"
10-
exit 128
9+
pyenv-virtualenv-delete ${FORCE+-f} "${DEFINITION}"
1110
else
1211
VERSION_NAME="${VERSION_NAME:-${DEFINITION##*/}}"
1312
PREFIX="${PREFIX:-${PYENV_ROOT}/versions/${VERSION_NAME}}"
@@ -16,8 +15,7 @@ uninstall_related_virtual_env() {
1615
REAL_DEFINITION="${REAL_PREFIX#${PYENV_ROOT}/versions/}"
1716
if [[ "${REAL_DEFINITION}" != "${REAL_DEFINITION%/envs/*}" ]]; then
1817
# Uninstall virtualenv by short name
19-
exec pyenv-virtualenv-delete ${FORCE+-f} "${REAL_DEFINITION}"
20-
exit 128
18+
pyenv-virtualenv-delete ${FORCE+-f} "${REAL_DEFINITION}"
2119
fi
2220
else
2321
# Uninstall all virtualenvs inside `envs` directory too

0 commit comments

Comments
 (0)