Shell: Simplify bash version

This commit is contained in:
Dylan Araps 2016-11-11 15:42:11 +11:00
parent 6a3e5e3f22
commit 17406f24f5

View file

@ -490,9 +490,7 @@ get_shell() {
shell+=" " shell+=" "
case "${SHELL##*/}" in case "${SHELL##*/}" in
"bash") "bash")
shell+="$(bash --version)" shell+=" ${BASH_VERSION/-*}"
shell="${shell/ *, version}"
shell="${shell/$'\n'*}"
;; ;;
"zsh") "zsh")