From 0b188d7c5588ec333116e1d3af74778739465c2e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 2 Jan 2017 11:46:07 +1100 Subject: [PATCH] DE: Check that WM isn't empty --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 148ff2b4..1547b02d 100755 --- a/neofetch +++ b/neofetch @@ -556,7 +556,7 @@ get_de() { # the desktop variables are sometimes also set to the # window manager name. This checks to see if WM == DE # and dicards the DE value. - [[ "$de" =~ $wm ]] && { unset -v de; return; } + [[ "$wm" && "$de" =~ $wm ]] && { unset -v de; return; } ;; esac