mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-14 06:23:52 -05:00
shell: do not use basename, but bash
This commit is contained in:
@@ -68,7 +68,7 @@ if ! pyenv-virtualenv-prefix "${versions}" 1>/dev/null 2>&1; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
shell="$(basename "${PYENV_SHELL:-$SHELL}")"
|
shell="${PYENV_SHELL:-${SHELL##*/}}"
|
||||||
case "$shell" in
|
case "$shell" in
|
||||||
bash )
|
bash )
|
||||||
profile="$HOME/.bash_profile"
|
profile="$HOME/.bash_profile"
|
||||||
|
|||||||
Reference in New Issue
Block a user