mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-08 11:33:55 -05:00
Strip -<suffix> when autodetecting shell (#377)
For example bash-5.1, bash-static.
This commit is contained in:
@@ -45,6 +45,7 @@ if [ -z "$shell" ]; then
|
|||||||
shell="${shell%% *}"
|
shell="${shell%% *}"
|
||||||
shell="${shell:-$SHELL}"
|
shell="${shell:-$SHELL}"
|
||||||
shell="${shell##*/}"
|
shell="${shell##*/}"
|
||||||
|
shell="${shell%%-*}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$print" ]; then
|
if [ -z "$print" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user