Fix whitespace issue if gtk2 theme wasn't found
This commit is contained in:
parent
aa4395279d
commit
936aeab35a
6
fetch
6
fetch
|
@ -886,10 +886,10 @@ getgtk () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Format the string
|
# Format the string
|
||||||
gtk2theme=${gtk2theme/${name}=/}
|
gtk2theme=${gtk2theme/${name}*=/}
|
||||||
gtk2theme=${gtk2theme//\"/}
|
gtk2theme=${gtk2theme//\"/}
|
||||||
gtk2theme="$gtk2theme"
|
gtk2theme="$gtk2theme"
|
||||||
gtktheme="$gtk2theme [GTK2] "
|
[ "$gtktheme" ] && gtktheme="$gtk2theme [GTK2] "
|
||||||
|
|
||||||
# Check for gtk3 theme
|
# Check for gtk3 theme
|
||||||
if [ -f "$HOME/.config/gtk-3.0/settings.ini" ]; then
|
if [ -f "$HOME/.config/gtk-3.0/settings.ini" ]; then
|
||||||
|
@ -899,7 +899,7 @@ getgtk () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Format the string
|
# Format the string
|
||||||
gtk3theme=${gtk3theme/${name}=/}
|
gtk3theme=${gtk3theme/${name}*=/}
|
||||||
gtk3theme=${gtk3theme//\"/}
|
gtk3theme=${gtk3theme//\"/}
|
||||||
gtk3theme="$gtk3theme"
|
gtk3theme="$gtk3theme"
|
||||||
gtktheme="$gtk2theme $gtk3theme [GTK3]"
|
gtktheme="$gtk2theme $gtk3theme [GTK3]"
|
||||||
|
|
Reference in New Issue