Unverified Commit 1096b22c authored by Guangyuan Yang's avatar Guangyuan Yang Committed by GitHub

Fixes GPU info read error on MINGW64 (#1799)

Closes #1798.
parent cc39539c
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment