diff --git a/fetch b/fetch index 43ecf3de..0321671d 100755 --- a/fetch +++ b/fetch @@ -902,6 +902,7 @@ getgtk () { # Format the string gtk3theme=${gtk3theme/${name}*=/} gtk3theme=${gtk3theme//\"/} + gtk3theme=${gtk3theme/[[:space:]]} gtktheme="${gtk2theme}${gtk3theme} [GTK3]" # Check to see if gtk2 and gtk3 theme are identical @@ -911,8 +912,6 @@ getgtk () { gtktheme="None" fi - gtktheme=${gtktheme/^[[:space:]]/} - # Make the output shorter by removing "[GTKX]" from the string if [ "$gtk_shorthand" == "on" ]; then gtktheme=${gtktheme/ [GTK2]/}