Shell: Disable version detection for ash and dash

This commit is contained in:
Muhammad Herdiansyah 2017-01-01 15:07:10 +07:00
parent 673e0420e8
commit ce63709b06
1 changed files with 1 additions and 1 deletions

View File

@ -500,7 +500,7 @@ get_shell() {
if [[ "$shell_version" == "on" ]]; then if [[ "$shell_version" == "on" ]]; then
case "${SHELL##*/}" in case "${SHELL##*/}" in
"bash") shell+="${BASH_VERSION/-*}" ;; "bash") shell+="${BASH_VERSION/-*}" ;;
"sh") ;; "sh" | "ash" | "dash") ;;
"mksh" | "ksh") "mksh" | "ksh")
shell+="$("$SHELL" -c 'printf "%s" "$KSH_VERSION"')" shell+="$("$SHELL" -c 'printf "%s" "$KSH_VERSION"')"