Fix GPU output on OS X when more than one GPU is found

This commit is contained in:
Dylan 2016-02-23 09:40:57 +11:00
parent 6f238e14fa
commit 46caad8a5f

2
fetch
View file

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