feat(init): strip -<suffix> when autodetecting shell
For example bash-5.1, bash-static.
This commit is contained in:
parent
3086e6e790
commit
61d702405d
@ -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…
x
Reference in New Issue
Block a user