Shorten Mac OS X GPU output and add a comma between gpus
This commit is contained in:
parent
3b58a066c2
commit
fcc1d50b54
1 changed files with 2 additions and 5 deletions
7
fetch
7
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")
|
||||
|
|
Loading…
Reference in a new issue