mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-02 18:25:52 -05:00
feat(init): strip -<suffix> when autodetecting shell
For example bash-5.1, bash-static.
This commit is contained in:
parent
d604acb78a
commit
45951d2cbb
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ if [ -z "$shell" ]; then
|
||||||
shell="${shell##-}"
|
shell="${shell##-}"
|
||||||
shell="${shell:-$SHELL}"
|
shell="${shell:-$SHELL}"
|
||||||
shell="${shell##*/}"
|
shell="${shell##*/}"
|
||||||
|
shell="${shell%%-*}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
root="${0%/*}/.."
|
root="${0%/*}/.."
|
||||||
|
|
Loading…
Reference in a new issue