mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
fixed whitespace issue with windows cpu info
This commit is contained in:
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
Block a user