Fix whitespace issue if gtk2 theme wasn't found

This commit is contained in:
Dylan 2016-01-24 10:33:02 +11:00
parent aa4395279d
commit 936aeab35a

6
fetch
View file

@ -886,10 +886,10 @@ getgtk () {
fi
# Format the string
gtk2theme=${gtk2theme/${name}=/}
gtk2theme=${gtk2theme/${name}*=/}
gtk2theme=${gtk2theme//\"/}
gtk2theme="$gtk2theme"
gtktheme="$gtk2theme [GTK2] "
[ "$gtktheme" ] && gtktheme="$gtk2theme [GTK2] "
# Check for gtk3 theme
if [ -f "$HOME/.config/gtk-3.0/settings.ini" ]; then
@ -899,7 +899,7 @@ getgtk () {
fi
# Format the string
gtk3theme=${gtk3theme/${name}=/}
gtk3theme=${gtk3theme/${name}*=/}
gtk3theme=${gtk3theme//\"/}
gtk3theme="$gtk3theme"
gtktheme="$gtk2theme $gtk3theme [GTK3]"