Fix windows whitespace

This commit is contained in:
Dylan 2016-03-27 15:09:59 +11:00
parent df945f51a9
commit 19b3c22b37
1 changed files with 4 additions and 0 deletions

View File

@ -504,6 +504,8 @@ case "$os" in
# Strip crap from the output of wmic
distro=${distro/Caption'='}
distro=${distro//[[:space:]]/ }
distro=${distro// }
distro=${distro/Microsoft }
# Change bits to xx-bit for Windows
@ -863,6 +865,8 @@ getcpu () {
cpu="$(grep -F 'model name' /proc/cpuinfo)"
cpu=${cpu/model name*: }
cpu=${cpu/ @*}
cpu=${cpu// }
cpu=${cpu% }
# Get cpu speed
speed="$(grep -F 'cpu MHz' /proc/cpuinfo)"