Added comma to gtk theme output

This commit is contained in:
Dylan 2016-01-25 01:14:35 +11:00
parent ca0d661fc8
commit 2359a3ce2e

6
fetch
View file

@ -906,13 +906,13 @@ getgtk () {
gtk2theme=${gtk2theme//\"/}
[ "$gtk2theme" ] && \
gtktheme="$gtk2theme [GTK2] "
gtktheme="$gtk2theme [GTK2],"
# Format the string
gtk3theme=${gtk3theme/${name}*=/}
gtk3theme=${gtk3theme//\"/}
gtk3theme=${gtk3theme/[[:space:]]}
gtktheme="${gtktheme}${gtk3theme} [GTK3]"
gtktheme="${gtktheme} ${gtk3theme} [GTK3]"
# Check to see if gtk2 and gtk3 theme are identical
if [ "$gtk2theme" ] && [ "$gtk2theme" == "$gtk3theme" ]; then
@ -923,7 +923,7 @@ getgtk () {
# Make the output shorter by removing "[GTKX]" from the string
if [ "$gtk_shorthand" == "on" ]; then
gtktheme=${gtktheme/ '[GTK2]'/,}
gtktheme=${gtktheme/ '[GTK2]'}
gtktheme=${gtktheme/ '[GTK3]'}
gtktheme=${gtktheme/ '[GTK2/3]'}
fi