We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pyenv virtualenv
1 parent e0a1e9b commit ed779feCopy full SHA for ed779fe
bin/pyenv-virtualenv
@@ -537,10 +537,11 @@ for hook in "${before_hooks[@]}"; do eval "$hook"; done
537
538
# Plan cleanup on unsuccessful installation.
539
cleanup() {
540
+ [[ -L "${COMPAT_VIRTUALENV_PATH}" ]] && rm "${COMPAT_VIRTUALENV_PATH}"
541
[ -z "${PREFIX_EXISTS}" ] && rm -rf "$VIRTUALENV_PATH"
542
}
543
-trap cleanup SIGINT
544
+trap cleanup SIGINT ERR
545
546
# Invoke virtualenv and record exit status in $STATUS.
547
STATUS=0
0 commit comments