From b9bb282c8d273a20a775fe591bad7244bf6a78e2 Mon Sep 17 00:00:00 2001 From: dylan araps Date: Tue, 5 Jan 2016 16:59:45 +1100 Subject: [PATCH] fixed whitespace issue with windows cpu info --- fetch.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/fetch.sh b/fetch.sh index dc290670..e1b3f0cb 100755 --- a/fetch.sh +++ b/fetch.sh @@ -450,6 +450,7 @@ getcpu () { # Get cpu name cpu="$(grep 'model name' /proc/cpuinfo)" cpu=${cpu/model name*: /} + cpu=${cpu% } speed=$(grep 'cpu MHz' /proc/cpuinfo) speed=${speed/cpu MHz*: /}