Suppress message about virtualenv-init if -quiet given (fixes #122)

This commit is contained in:
Yamashita, Yuu
2015-11-23 13:34:46 +00:00
parent 5f87786adf
commit 4e9d697887

View File

@@ -123,7 +123,9 @@ fi
# Display setup instruction, if pyenv-virtualenv has not been initialized. # Display setup instruction, if pyenv-virtualenv has not been initialized.
# if 'pyenv virtualenv-init -' is not found in "$profile" # if 'pyenv virtualenv-init -' is not found in "$profile"
if [ -z "$PYENV_VIRTUALENV_INIT" ]; then if [ -z "$PYENV_VIRTUALENV_INIT" ]; then
pyenv-virtualenv-init >&2 || true if [ -z "${QUIET}" ]; then
pyenv-virtualenv-init >&2 || true
fi
fi fi
pyenv-sh-deactivate --quiet ${VERBOSE+--verbose} || true pyenv-sh-deactivate --quiet ${VERBOSE+--verbose} || true