From ae46d6f895c1b69b1d4472356156234ca0c4a6e4 Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 19 Jan 2016 11:17:45 +1100 Subject: [PATCH] NetBSD: Actually fix whitespace issue --- fetch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fetch b/fetch index bf439b29..5c385432 100755 --- a/fetch +++ b/fetch @@ -577,16 +577,17 @@ getcpu () { cpu="$(grep -F 'model name' /proc/cpuinfo)" cpu=${cpu/model name*: /} cpu=${cpu/ @*/} + cpu=${cpu// /} + cpu=${cpu% } # Get cpu speed speed="$(grep -F 'cpu MHz' /proc/cpuinfo)" speed=${speed/cpu MHz*: /} - speed=${speed/'.'/} + speed=${speed/\./} speed=$((speed / 10000)) speed=${speed:0:1}.${speed:1} cpu="$cpu @ ${speed}GHz" - cpu=${cpu/[[:space:]]/} ;; *)