From 06b1c77bb8311a91d09fbb2c11f9827a3570a97a Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 11 Jun 2021 07:03:16 +0000 Subject: [PATCH] gpu: Fix windows issue. See: #1759 --- neofetch | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/neofetch b/neofetch index b525c857..b735d512 100755 --- a/neofetch +++ b/neofetch @@ -2561,12 +2561,14 @@ get_gpu() { while read -r line; do line=$(trim "$line") - [[ -z $win_gpu ]] || [[ -z "$line" ]] && { - win_gpu=1 - continue - } + case $line in + *Caption*|'') + continue - prin "${subtitle:+${subtitle}${gpu_name}}" "$line" + *) + prin "${subtitle:+${subtitle}${gpu_name}}" "$line" + ;; + esac done < <(wmic path Win32_VideoController get caption) ;;