From aa7e185d17bb209b38b167559c36f97218a5a8bd Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Wed, 5 Oct 2016 22:03:44 +0700 Subject: [PATCH] Solaris: Better awk without gsub --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 10b1fd3e..f1b0cc3a 100755 --- a/neofetch +++ b/neofetch @@ -217,7 +217,7 @@ getdistro() { ;; "Solaris") - distro="$(nawk 'NR==1{gsub(/^ \t]+|[ \t]+$/,""); printf $1 " " $2;}' /etc/release)" + distro="$(awk 'NR==1{print $1 " " $2;}' /etc/release)" ;; esac