From 71d8914ec7a30e42e800253433eae10bc1b43869 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 4 Oct 2020 18:05:18 +0300 Subject: [PATCH] windows: Fix gpu output --- neofetch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 3e93ed79..f88f5c95 100755 --- a/neofetch +++ b/neofetch @@ -2517,10 +2517,13 @@ get_gpu() { "Windows") while read -r line; do + [[ $win_gpu ]] || { + win_gpu=1 + continue + } + prin "${subtitle:+${subtitle}${gpu_name}}" "$(trim "$line")" done < <(wmic path Win32_VideoController get caption) - - gpu=${gpu//Caption} ;; "Haiku")