mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-18 09:57:13 +00:00
Windows: Fixed cpu whitespace issue
This commit is contained in:
6
fetch.sh
6
fetch.sh
@@ -63,6 +63,7 @@ use_wmctrl=0
|
|||||||
# CPU
|
# CPU
|
||||||
|
|
||||||
# CPU speed type
|
# CPU speed type
|
||||||
|
# Only works on Linux
|
||||||
# --speed_type current/min/max
|
# --speed_type current/min/max
|
||||||
speed_type="max"
|
speed_type="max"
|
||||||
|
|
||||||
@@ -472,10 +473,9 @@ 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// /}
|
cpu=${cpu/ @*/}
|
||||||
cpu=${cpu% }
|
|
||||||
cpu=${cpu/@*/}
|
|
||||||
|
|
||||||
|
# Get cpu speed
|
||||||
speed=$(grep 'cpu MHz' /proc/cpuinfo)
|
speed=$(grep 'cpu MHz' /proc/cpuinfo)
|
||||||
speed=${speed/cpu MHz*: /}
|
speed=${speed/cpu MHz*: /}
|
||||||
speed=${speed/\./}
|
speed=${speed/\./}
|
||||||
|
|||||||
Reference in New Issue
Block a user