|
@ -6,8 +6,7 @@ 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 |
|
|
exec pyenv-virtualenv-delete ${FORCE+-f} "${DEFINITION}" |
|
|
|
|
|
exit 128 |
|
|
|
|
|
|
|
|
pyenv-virtualenv-delete ${FORCE+-f} "${DEFINITION}" |
|
|
else |
|
|
else |
|
|
VERSION_NAME="${VERSION_NAME:-${DEFINITION##*/}}" |
|
|
VERSION_NAME="${VERSION_NAME:-${DEFINITION##*/}}" |
|
|
PREFIX="${PREFIX:-${PYENV_ROOT}/versions/${VERSION_NAME}}" |
|
|
PREFIX="${PREFIX:-${PYENV_ROOT}/versions/${VERSION_NAME}}" |
|
@ -16,8 +15,7 @@ uninstall_related_virtual_env() { |
|
|
REAL_DEFINITION="${REAL_PREFIX#${PYENV_ROOT}/versions/}" |
|
|
REAL_DEFINITION="${REAL_PREFIX#${PYENV_ROOT}/versions/}" |
|
|
if [[ "${REAL_DEFINITION}" != "${REAL_DEFINITION%/envs/*}" ]]; then |
|
|
if [[ "${REAL_DEFINITION}" != "${REAL_DEFINITION%/envs/*}" ]]; then |
|
|
# Uninstall virtualenv by short name |
|
|
# Uninstall virtualenv by short name |
|
|
exec pyenv-virtualenv-delete ${FORCE+-f} "${REAL_DEFINITION}" |
|
|
|
|
|
exit 128 |
|
|
|
|
|
|
|
|
pyenv-virtualenv-delete ${FORCE+-f} "${REAL_DEFINITION}" |
|
|
fi |
|
|
fi |
|
|
else |
|
|
else |
|
|
# Uninstall all virtualenvs inside `envs` directory too |
|
|
# Uninstall all virtualenvs inside `envs` directory too |
|
|