Performe as same as before v20140614 if pyenv virtualenv-init is not configured (#26)

This commit is contained in:
Yamashita Yuu
2014-06-15 16:32:25 +09:00
parent 4a6ef11349
commit d9e3adc108
5 changed files with 111 additions and 4 deletions

View File

@@ -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