From 17d17f448038595f28ef2d81c2b0e7cefda16aec Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 22 Oct 2016 19:59:25 +1100 Subject: [PATCH] Theme: Fix gtk2/3 comparison when whitespace is involved --- neofetch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neofetch b/neofetch index ea9c8cb6..9b236b7e 100755 --- a/neofetch +++ b/neofetch @@ -1500,6 +1500,10 @@ getstyle() { [ "$gtk2" == "off" ] && unset gtk2theme [ "$gtk3" == "off" ] && unset gtk3theme + # Trim whitespace + gtk2theme="$(trim "$gtk2theme")" + gtk3theme="$(trim "$gtk3theme")" + # Format the string based on which themes exist if [ "$gtk2theme" ] && [ "$gtk2theme" == "$gtk3theme" ]; then gtk3theme+=" [GTK2/3]"