windows: Fix gpu output

This commit is contained in:
Dylan Araps 2020-10-04 18:05:18 +03:00
parent c511bcbcef
commit 71d8914ec7
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 5 additions and 2 deletions

View File

@ -2517,10 +2517,13 @@ get_gpu() {
"Windows") "Windows")
while read -r line; do while read -r line; do
[[ $win_gpu ]] || {
win_gpu=1
continue
}
prin "${subtitle:+${subtitle}${gpu_name}}" "$(trim "$line")" prin "${subtitle:+${subtitle}${gpu_name}}" "$(trim "$line")"
done < <(wmic path Win32_VideoController get caption) done < <(wmic path Win32_VideoController get caption)
gpu=${gpu//Caption}
;; ;;
"Haiku") "Haiku")