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) ;;