Shorten Mac OS X GPU output and add a comma between gpus
This commit is contained in:
parent
3b58a066c2
commit
fcc1d50b54
7
fetch
7
fetch
|
@ -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")
|
||||||
|
|
Reference in New Issue