mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 20:12:31 +00:00
Fix windows whitespace
This commit is contained in:
4
neofetch
4
neofetch
@@ -504,6 +504,8 @@ case "$os" in
|
|||||||
|
|
||||||
# Strip crap from the output of wmic
|
# Strip crap from the output of wmic
|
||||||
distro=${distro/Caption'='}
|
distro=${distro/Caption'='}
|
||||||
|
distro=${distro//[[:space:]]/ }
|
||||||
|
distro=${distro// }
|
||||||
distro=${distro/Microsoft }
|
distro=${distro/Microsoft }
|
||||||
|
|
||||||
# Change bits to xx-bit for Windows
|
# Change bits to xx-bit for Windows
|
||||||
@@ -863,6 +865,8 @@ getcpu () {
|
|||||||
cpu="$(grep -F 'model name' /proc/cpuinfo)"
|
cpu="$(grep -F 'model name' /proc/cpuinfo)"
|
||||||
cpu=${cpu/model name*: }
|
cpu=${cpu/model name*: }
|
||||||
cpu=${cpu/ @*}
|
cpu=${cpu/ @*}
|
||||||
|
cpu=${cpu// }
|
||||||
|
cpu=${cpu% }
|
||||||
|
|
||||||
# Get cpu speed
|
# Get cpu speed
|
||||||
speed="$(grep -F 'cpu MHz' /proc/cpuinfo)"
|
speed="$(grep -F 'cpu MHz' /proc/cpuinfo)"
|
||||||
|
|||||||
Reference in New Issue
Block a user