Merge pull request #1835 from scop/shell-detect-improvements

Shell detect improvements
This commit is contained in:
Anton Petrov 2021-03-26 19:11:17 +03:00 committed by GitHub
commit 132d546453
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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%/*}/.."