Commit bade83d5 authored by Dylan Araps's avatar Dylan Araps

Shell: Fix shell version on bash 3

parent 32c4b00b
...@@ -525,7 +525,7 @@ get_shell() { ...@@ -525,7 +525,7 @@ get_shell() {
esac esac
if [[ "$shell_version" == "on" ]]; then if [[ "$shell_version" == "on" ]]; then
case "${SHELL##*/}" in case "${shell_name:=${SHELL##*/}}" in
"bash") shell+="${BASH_VERSION/-*}" ;; "bash") shell+="${BASH_VERSION/-*}" ;;
"sh" | "ash" | "dash") ;; "sh" | "ash" | "dash") ;;
...@@ -537,7 +537,7 @@ get_shell() { ...@@ -537,7 +537,7 @@ get_shell() {
*) *)
shell+="$("$SHELL" --version 2>&1)" shell+="$("$SHELL" --version 2>&1)"
shell="${shell/ ${SHELL##*/}}" shell="${shell/ "${shell_name}"}"
;; ;;
esac esac
......
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