remove unnecessary logic from init script

This commit is contained in:
Yamashita, Yuu
2015-11-06 17:58:09 +00:00
parent 7f33ddd911
commit 017d20ad91
2 changed files with 12 additions and 31 deletions

View File

@@ -28,9 +28,9 @@ while [ $# -gt 0 ]; do
done
shell="$(basename "${PYENV_SHELL:-$SHELL}")"
prefix="${PYENV_ACTIVATE:-${VIRTUAL_ENV}}"
prefix="${VIRTUAL_ENV:-${PYENV_ACTIVATE}}"
if [ -z "${VIRTUAL_ENV}" ]; then
if [ -z "${prefix}" ]; then
[ -n "$QUIET" ] || echo "pyenv-virtualenv: no virtualenv has been activated." 1>&2
echo "false"
exit 1