diff --git a/fetch.sh b/fetch.sh index c0bdef6e..5de1048b 100755 --- a/fetch.sh +++ b/fetch.sh @@ -478,6 +478,8 @@ getcpu () { cpu="$(grep 'model name' /proc/cpuinfo)" cpu=${cpu/model name*: /} cpu=${cpu/ @*/} + cpu=${cpu// /} + cpu=${cpu% } # Get cpu speed speed=$(grep 'cpu MHz' /proc/cpuinfo)