mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-23 09:39:13 +00:00
Fix GPU output on OS X when more than one GPU is found
This commit is contained in:
2
fetch
2
fetch
@@ -922,7 +922,7 @@ getgpu () {
|
|||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
gpu=$( \
|
gpu=$( \
|
||||||
system_profiler SPDisplaysDataType | \
|
system_profiler SPDisplaysDataType | \
|
||||||
awk -F': ' '/^\ *Chipset Model:/ {printf $2}' | \
|
awk -F':' '/^\ *Chipset Model:/ {printf $2 ","}' | \
|
||||||
awk '{ printf "%s ", $0 }'
|
awk '{ printf "%s ", $0 }'
|
||||||
)
|
)
|
||||||
gpu=${gpu//'/ $'}
|
gpu=${gpu//'/ $'}
|
||||||
|
|||||||
Reference in New Issue
Block a user