From 4660ae7a53d61a90a66dc5634367a8e357bfb135 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 4 Oct 2020 19:05:03 +0300 Subject: [PATCH] various: fix windows issues --- neofetch | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index e5e7dbbb..ba183598 100755 --- a/neofetch +++ b/neofetch @@ -1718,11 +1718,11 @@ get_de() { Windows) case $distro in - "Windows 10"*) + *"Windows 10"*) de=Fluent ;; - "Windows 8"*) + *"Windows 8"*) de=Metro ;; @@ -2517,12 +2517,14 @@ get_gpu() { "Windows") while read -r line; do + line=$(trim "$line") + [[ -z $win_gpu ]] || [[ -z "$line" ]] && { win_gpu=1 continue } - prin "${subtitle:+${subtitle}${gpu_name}}" "$(trim "$line")" + prin "${subtitle:+${subtitle}${gpu_name}}" "$line" done < <(wmic path Win32_VideoController get caption) ;;