1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-14 14:23:53 -05:00

feat(init): strip -<suffix> when autodetecting shell

For example bash-5.1, bash-static.
This commit is contained in:
Ville Skyttä
2021-03-01 07:49:47 +02:00
parent d604acb78a
commit 45951d2cbb

View File

@@ -38,6 +38,7 @@ if [ -z "$shell" ]; then
shell="${shell##-}"
shell="${shell:-$SHELL}"
shell="${shell##*/}"
shell="${shell%%-*}"
fi
root="${0%/*}/.."