From c93f3dabd6ab578bf055165c813ef80bc9829a57 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 4 Oct 2020 18:26:26 +0300 Subject: [PATCH] gpu: Fix blank line in output on Windows. --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index f88f5c95..477a9b24 100755 --- a/neofetch +++ b/neofetch @@ -2517,7 +2517,7 @@ get_gpu() { "Windows") while read -r line; do - [[ $win_gpu ]] || { + [[ -z $win_gpu ]] || [[ -z "$line" ]] && { win_gpu=1 continue }