From 5729d33cb53805da861ce302e37671582030eeb7 Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 1 Feb 2016 09:57:48 +1100 Subject: [PATCH] I actually fixed the double space before '@' in cpu usage! --- fetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fetch b/fetch index 14973015..ec24c241 100755 --- a/fetch +++ b/fetch @@ -697,9 +697,8 @@ getcpu () { # Get cpu name cpu="$(grep -F 'model name' /proc/cpuinfo)" cpu=${cpu/model name*: } - cpu=${cpu%% *} cpu=${cpu/ @*} - cpu=${cpu// } + cpu=${cpu%% } # Get cpu speed if [ -d "/sys/devices/system/cpu/cpu0/cpufreq" ]; then