Shorten Mac OS X GPU output and add a comma between gpus

This commit is contained in:
Dylan 2016-02-23 10:36:10 +11:00
parent 3b58a066c2
commit fcc1d50b54
1 changed files with 2 additions and 5 deletions

7
fetch
View File

@ -920,12 +920,9 @@ getgpu () {
;; ;;
"Mac OS X") "Mac OS X")
gpu=$( \ gpu=$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}')
system_profiler SPDisplaysDataType | \
awk -F': ' '/^\ *Chipset Model:/ {printf $2 ", "}' | \
awk '{ printf "%s ", $0 }'
)
gpu=${gpu//'/ $'} gpu=${gpu//'/ $'}
gpu=${gpu%,*}
;; ;;
*"BSD") *"BSD")