From 446926ddb46248718448c6d30b56ab28efbd5832 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 19 Dec 2016 11:56:16 +1100 Subject: [PATCH] Shell: Fix bug with sh and --version --- neofetch | 1 + 1 file changed, 1 insertion(+) diff --git a/neofetch b/neofetch index 186b9221..c4959c61 100755 --- a/neofetch +++ b/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"')"