shell: do not use basename, but bash

This commit is contained in:
Daniel Hahler
2015-05-10 17:36:03 +02:00
parent 47cd86a165
commit 95fa7a35ad

View File

@@ -68,7 +68,7 @@ if ! pyenv-virtualenv-prefix "${versions}" 1>/dev/null 2>&1; then
exit 1
fi
shell="$(basename "${PYENV_SHELL:-$SHELL}")"
shell="${PYENV_SHELL:-${SHELL##*/}}"
case "$shell" in
bash )
profile="$HOME/.bash_profile"