Theme: Fix gtk2/3 comparison when whitespace is involved

This commit is contained in:
Dylan Araps 2016-10-22 19:59:25 +11:00
parent eaae9efb9d
commit 17d17f4480

View file

@ -1500,6 +1500,10 @@ getstyle() {
[ "$gtk2" == "off" ] && unset gtk2theme
[ "$gtk3" == "off" ] && unset gtk3theme
# Trim whitespace
gtk2theme="$(trim "$gtk2theme")"
gtk3theme="$(trim "$gtk3theme")"
# Format the string based on which themes exist
if [ "$gtk2theme" ] && [ "$gtk2theme" == "$gtk3theme" ]; then
gtk3theme+=" [GTK2/3]"