Use tr on OSX to trim whitespace
This commit is contained in:
parent
2edad96936
commit
6296cf7410
1 changed files with 1 additions and 2 deletions
3
neofetch
3
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)
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in a new issue