From 6296cf7410f6218aec6b8003c140099eded273ec Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 27 Mar 2016 14:05:22 +1100 Subject: [PATCH] Use tr on OSX to trim whitespace --- neofetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 9bf99351..6627df2f 100755 --- a/neofetch +++ b/neofetch @@ -838,8 +838,7 @@ getcpu () { ;; "Mac OS X") - cpu="$(sysctl -n machdep.cpu.brand_string)" - cpu=${cpu//[[:space:]]/ } + cpu="$(sysctl -n machdep.cpu.brand_string | tr -s \ )" cores=$(sysctl -n hw.ncpu) ;;