Fixes GPU info read error on MINGW64 (#1799)

Closes #1798.
This commit is contained in:
Guangyuan Yang 2021-06-26 00:39:07 -04:00 committed by GitHub
parent cc39539c55
commit 1096b22c18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2611,7 +2611,7 @@ get_gpu() {
;;
"Windows")
while read -r line; do
wmic path Win32_VideoController get caption | while read -r line; do
line=$(trim "$line")
case $line in
@ -2623,7 +2623,7 @@ get_gpu() {
prin "${subtitle:+${subtitle}${gpu_name}}" "$line"
;;
esac
done < <(wmic path Win32_VideoController get caption)
done
;;
"Haiku")