From 1096b22c18088da5fed025eebdc96facdc8b2e66 Mon Sep 17 00:00:00 2001 From: Guangyuan Yang Date: Sat, 26 Jun 2021 00:39:07 -0400 Subject: [PATCH] Fixes GPU info read error on MINGW64 (#1799) Closes #1798. --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index c7f4860e..f084d753 100755 --- a/neofetch +++ b/neofetch @@ -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")