mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-08 03:23:54 -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%%-*}"
|
||||
fi
|
||||
|
||||
if [ -z "$print" ]; then
|
||||
|
||||
Reference in New Issue
Block a user