mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
shell: do not use basename, but bash
This commit is contained in:
parent
47cd86a165
commit
95fa7a35ad
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue