Theme: Fix gtk2/3 comparison when whitespace is involved
This commit is contained in:
parent
eaae9efb9d
commit
17d17f4480
4
neofetch
4
neofetch
|
@ -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]"
|
||||
|
|
Reference in New Issue