Commit 17d17f44 authored by Dylan Araps's avatar Dylan Araps

Theme: Fix gtk2/3 comparison when whitespace is involved

parent eaae9efb
...@@ -1500,6 +1500,10 @@ getstyle() { ...@@ -1500,6 +1500,10 @@ getstyle() {
[ "$gtk2" == "off" ] && unset gtk2theme [ "$gtk2" == "off" ] && unset gtk2theme
[ "$gtk3" == "off" ] && unset gtk3theme [ "$gtk3" == "off" ] && unset gtk3theme
# Trim whitespace
gtk2theme="$(trim "$gtk2theme")"
gtk3theme="$(trim "$gtk3theme")"
# Format the string based on which themes exist # Format the string based on which themes exist
if [ "$gtk2theme" ] && [ "$gtk2theme" == "$gtk3theme" ]; then if [ "$gtk2theme" ] && [ "$gtk2theme" == "$gtk3theme" ]; then
gtk3theme+=" [GTK2/3]" gtk3theme+=" [GTK2/3]"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment