Ver código fonte

Merge pull request #589 from mstraube/syntax

General: Fix arithmetic expression
Herdiansyah 8 anos atrás
pai
commit
6057b8c7fb
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      neofetch

+ 1 - 1
neofetch

@@ -697,7 +697,7 @@ get_wm_theme() {
 
 
         "Quartz Compositor")
         "Quartz Compositor")
             wm_theme="$(/usr/libexec/PlistBuddy -c "Print AppleAquaColorVariant" ~/Library/Preferences/.GlobalPreferences.plist)"
             wm_theme="$(/usr/libexec/PlistBuddy -c "Print AppleAquaColorVariant" ~/Library/Preferences/.GlobalPreferences.plist)"
-            if [[ -z "$wm_theme" ]] || (("$wm_theme" == 1)); then
+            if [[ -z "$wm_theme" ]] || ((wm_theme == 1)); then
                 wm_theme="Blue"
                 wm_theme="Blue"
             else
             else
                 wm_theme="Graphite"
                 wm_theme="Graphite"