From c95bed41eb799d1038bb6ec3072f066a3cbb72da Mon Sep 17 00:00:00 2001 From: GaugeK Date: Thu, 20 Aug 2020 23:19:43 +1000 Subject: [PATCH] Fix empty cpu still printing --- fet.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fet.sh b/fet.sh index 2c00a2c..2f4fe9d 100755 --- a/fet.sh +++ b/fet.sh @@ -62,7 +62,7 @@ mem="$(( $2 / 1000 ))MB" ## Processor while read -r line; do case $line in - vendor_id*) vendor="${line##*: }";; + vendor_id*) vendor="${line##*: } ";; model\ name*) cpu="${line##*: }"; break;; esac done < /proc/cpuinfo @@ -133,7 +133,7 @@ for i in $info; do wm) print wm "$wm";; up) print up "$up";; gtk) print gtk "${gtk# }";; - cpu) print cpu "$vendor $cpu";; + cpu) print cpu "$vendor$cpu";; mem) print mem "$mem";; host) print host "$model";; kern) print kern "$kernel";;