mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-09 20:13:54 -05:00
Upgrade uninstall hook after pyenv/pyenv#2432 (#438)
This commit is contained in:
@@ -2,6 +2,7 @@ resolve_link() {
|
|||||||
$(type -p greadlink readlink | head -1) "$1"
|
$(type -p greadlink readlink | head -1) "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uninstall_related_virtual_env() {
|
||||||
if [ -n "${DEFINITION}" ]; then
|
if [ -n "${DEFINITION}" ]; then
|
||||||
if [[ "${DEFINITION}" != "${DEFINITION%/envs/*}" ]]; then
|
if [[ "${DEFINITION}" != "${DEFINITION%/envs/*}" ]]; then
|
||||||
# Uninstall virtualenv by long name
|
# Uninstall virtualenv by long name
|
||||||
@@ -28,3 +29,6 @@ if [ -n "${DEFINITION}" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
before_uninstall "uninstall_related_virtual_env"
|
||||||
|
|||||||
Reference in New Issue
Block a user