mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-17 07:53:42 -05:00
Performe as same as before v20140614 if pyenv virtualenv-init is not configured (#26)
This commit is contained in:
@@ -33,6 +33,12 @@ if [ -z "$versions" ]; then
|
||||
IFS="$OLDIFS"
|
||||
fi
|
||||
|
||||
if [ -z "${PYENV_VIRTUALENV_INIT}" ]; then
|
||||
# Backward compatibility issue
|
||||
# https://github.com/yyuu/pyenv-virtualenv/issues/26
|
||||
no_shell=
|
||||
fi
|
||||
|
||||
if [ "${#versions[@]}" -gt 1 ]; then
|
||||
echo "pyenv-virtualenv: cannot activate multiple versions at once: ${versions[@]}" 1>&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user