Theme: Fix gtk2/3 comparison when whitespace is involved
This commit is contained in:
parent
eaae9efb9d
commit
17d17f4480
1 changed files with 4 additions and 0 deletions
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]"
|
||||
|
|
Loading…
Reference in a new issue