mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-17 16:03:42 -05:00
fix broken tests
This commit is contained in:
@@ -36,7 +36,12 @@ if [ -z "${prefix}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "pyenv-virtualenv: deactivate ${prefix##*/}" 1>&2
|
||||
if [[ "${prefix}" != "${prefix%/envs/*}" ]]; then
|
||||
version="$(basename "${prefix%/envs/*}")/envs/${prefix##*/}"
|
||||
else
|
||||
version="${prefix##*/}"
|
||||
fi
|
||||
echo "pyenv-virtualenv: deactivate ${version}" 1>&2
|
||||
|
||||
if [ -n "${PYENV_ACTIVATE_SHELL}" ]; then
|
||||
# shell version set in pyenv-sh-activate should be unset
|
||||
|
||||
Reference in New Issue
Block a user