diff --git a/fetch b/fetch index a2972a17..a4152b13 100755 --- a/fetch +++ b/fetch @@ -920,12 +920,9 @@ getgpu () { ;; "Mac OS X") - gpu=$( \ - system_profiler SPDisplaysDataType | \ - awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}' | \ - awk '{ printf "%s ", $0 }' - ) + gpu=$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}') gpu=${gpu//'/ $'} + gpu=${gpu%,*} ;; *"BSD")