Skip to content

Commit

Permalink
Strip -<suffix> when autodetecting shell (#377)
Browse files Browse the repository at this point in the history
For example bash-5.1, bash-static.
  • Loading branch information
scop authored Oct 18, 2022
1 parent c4de255 commit d5f2878
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/pyenv-virtualenv-init
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ if [ -z "$shell" ]; then
shell="${shell%% *}"
shell="${shell:-$SHELL}"
shell="${shell##*/}"
shell="${shell%%-*}"
fi

if [ -z "$print" ]; then
Expand Down

0 comments on commit d5f2878

Please sign in to comment.