Shell: Fix bug with sh and --version
This commit is contained in:
parent
6339b2f27a
commit
446926ddb4
1 changed files with 1 additions and 0 deletions
1
neofetch
1
neofetch
|
@ -505,6 +505,7 @@ get_shell() {
|
|||
if [[ "$shell_version" == "on" ]]; then
|
||||
case "${SHELL##*/}" in
|
||||
"bash") shell+="${BASH_VERSION/-*}" ;;
|
||||
"sh") ;;
|
||||
|
||||
"mksh" | "ksh")
|
||||
shell+="$("$SHELL" -c 'printf "%s" "$KSH_VERSION"')"
|
||||
|
|
Loading…
Reference in a new issue