fixed whitespace issue with windows cpu info
This commit is contained in:
parent
cb8444c41a
commit
b9bb282c8d
1
fetch.sh
1
fetch.sh
|
@ -450,6 +450,7 @@ getcpu () {
|
||||||
# Get cpu name
|
# Get cpu name
|
||||||
cpu="$(grep 'model name' /proc/cpuinfo)"
|
cpu="$(grep 'model name' /proc/cpuinfo)"
|
||||||
cpu=${cpu/model name*: /}
|
cpu=${cpu/model name*: /}
|
||||||
|
cpu=${cpu% }
|
||||||
|
|
||||||
speed=$(grep 'cpu MHz' /proc/cpuinfo)
|
speed=$(grep 'cpu MHz' /proc/cpuinfo)
|
||||||
speed=${speed/cpu MHz*: /}
|
speed=${speed/cpu MHz*: /}
|
||||||
|
|
Reference in New Issue