Skip to content

Commit d5f2878

Browse files
authored
Strip -<suffix> when autodetecting shell (#377)
For example bash-5.1, bash-static.
1 parent c4de255 commit d5f2878

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/pyenv-virtualenv-init

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ if [ -z "$shell" ]; then
4545
shell="${shell%% *}"
4646
shell="${shell:-$SHELL}"
4747
shell="${shell##*/}"
48+
shell="${shell%%-*}"
4849
fi
4950

5051
if [ -z "$print" ]; then

0 commit comments

Comments
 (0)