From 24e7216777841a7942e0ef7a236792d648c2740a Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Sun, 23 Oct 2016 18:41:22 +0700 Subject: [PATCH] Solaris: Strip out crap from getdistro output --- neofetch | 1 + 1 file changed, 1 insertion(+) diff --git a/neofetch b/neofetch index 87830da8..d9dba1b3 100755 --- a/neofetch +++ b/neofetch @@ -233,6 +233,7 @@ getdistro() { "on" | "tiny") distro="$(awk 'NR==1{print $1 " " $2;}' /etc/release)" ;; *) distro="$(awk 'NR==1{print $1 " " $2 " " $3;}' /etc/release)" ;; esac + distro="${distro/\(*}" ;; esac