Skip to content

Commit 922a1b4

Browse files
committed
Upgrade uninstall hook after pyenv/pyenv#2432
1 parent c6ff093 commit 922a1b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

etc/pyenv.d/uninstall/envs.bash

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ resolve_link() {
22
$(type -p greadlink readlink | head -1) "$1"
33
}
44

5+
uninstall_related_virtual_env() {
56
if [ -n "${DEFINITION}" ]; then
67
if [[ "${DEFINITION}" != "${DEFINITION%/envs/*}" ]]; then
78
# Uninstall virtualenv by long name
@@ -28,3 +29,6 @@ if [ -n "${DEFINITION}" ]; then
2829
fi
2930
fi
3031
fi
32+
}
33+
34+
before_uninstall "uninstall_related_virtual_env"

0 commit comments

Comments
 (0)