From 19b3c22b37caa48fa42201aec61868ac656663f3 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 27 Mar 2016 15:09:59 +1100 Subject: [PATCH] Fix windows whitespace --- neofetch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neofetch b/neofetch index 3afe9817..2fb22c1c 100755 --- a/neofetch +++ b/neofetch @@ -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)"