Commit 17406f24 authored by Dylan Araps's avatar Dylan Araps

Shell: Simplify bash version

parent 6a3e5e3f
......@@ -490,9 +490,7 @@ get_shell() {
shell+=" "
case "${SHELL##*/}" in
"bash")
shell+="$(bash --version)"
shell="${shell/ *, version}"
shell="${shell/$'\n'*}"
shell+=" ${BASH_VERSION/-*}"
;;
"zsh")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment