Shell: Simplify bash version

This commit is contained in:
Dylan Araps 2016-11-11 15:42:11 +11:00
parent 6a3e5e3f22
commit 17406f24f5
1 changed files with 1 additions and 3 deletions

View File

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