fixed whitespace issue with windows cpu info
This commit is contained in:
parent
cb8444c41a
commit
b9bb282c8d
1 changed files with 1 additions and 0 deletions
1
fetch.sh
1
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*: /}
|
||||
|
|
Loading…
Reference in a new issue