From 220bd852ba826b798c092094a8ea2d8a5c019b37 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 23 Dec 2016 21:08:26 +1100 Subject: [PATCH] Kernel: Add back OS check but simplify it --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 767f159d..74b3a5a3 100755 --- a/neofetch +++ b/neofetch @@ -293,7 +293,7 @@ get_kernel() { esac # Hide kernel info if it's identical to the distro info. - if [[ "$distro" == *"$kernel_name"* ]]; then + if [[ "$os" =~ (BSD|MINIX) && "$distro" == *"$kernel_name"* ]]; then case "$distro_shorthand" in "on" | "tiny") kernel="$kernel_version" ;; *) unset kernel ;;