diff --git a/bin/pyenv-sh-activate b/bin/pyenv-sh-activate index fe02ae0..e2e9b78 100755 --- a/bin/pyenv-sh-activate +++ b/bin/pyenv-sh-activate @@ -67,14 +67,12 @@ venv="${versions}" # exit as success if some virtualenv outside from pyenv is already activated if [ -n "${VIRTUAL_ENV}" ]; then - if [[ "${VIRTUAL_ENV}" != "$(pyenv-root)/"* ]]; then - if [ -z "${FORCE}" ]; then - if [ -z "${QUIET}" ]; then - echo "pyenv-virtualenv: virtualenv \`${VIRTUAL_ENV}' is already activated" 1>&2 - fi - echo "true" - exit 0 + if [ -z "${FORCE}" ]; then + if [ -z "${QUIET}" ]; then + echo "pyenv-virtualenv: virtualenv \`${VIRTUAL_ENV}' is already activated" 1>&2 fi + echo "true" + exit 0 fi fi