From 5a6a3d7e5bdb4db5981c38d53640d15b48889de3 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 14 Dec 2016 11:33:19 +1100 Subject: [PATCH] CPU: [NetBSD] Remove case statement in favor of 1 line test --- neofetch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/neofetch b/neofetch index 42df3b1c..eae5befd 100755 --- a/neofetch +++ b/neofetch @@ -723,9 +723,7 @@ get_cpu() { # NetBSD emulates the linux /proc filesystem instead of using sysctl for hw # information so we have to use this block below which temporarily sets the # OS to 'Linux' for the duration of this function. - case "$distro" in - "NetBSD"*) local os="Linux" ;; - esac + [[ "$distro" == "NetBSD"* ]] && local os="Linux" case "$os" in "Linux" | "Windows")