소스 검색

General: Fix arithmetic expression

Michael Straube 8 년 전
부모
커밋
d0975b2436
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      neofetch

+ 1 - 1
neofetch

@@ -697,7 +697,7 @@ get_wm_theme() {
 
         "Quartz Compositor")
             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"
             else
                 wm_theme="Graphite"