From de8779db8fea225cd74e208db98046a0356dacc0 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Sun, 25 Dec 2016 14:33:33 +0700 Subject: [PATCH] CPU [Minix]: Added case instead of setting a local variable I still don't remember why I made it into a local variable. --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 475f22ae..c3a3ff3c 100755 --- a/neofetch +++ b/neofetch @@ -741,10 +741,10 @@ 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. - [[ "$distro" == "NetBSD"* || "$os" == "MINIX" ]] && local os="Linux" + [[ "$distro" == "NetBSD"* ]] && local os="Linux" case "$os" in - "Linux" | "Windows") + "Linux" | "MINIX" | "Windows") # Get CPU name. case "$distro" in "Android"*) cpu="$(getprop ro.product.board)" ;;