Added comma to gtk theme output

This commit is contained in:
Dylan 2016-01-25 01:14:35 +11:00
parent ca0d661fc8
commit 2359a3ce2e
1 changed files with 3 additions and 3 deletions

6
fetch
View File

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