diff options
author | zachir <zachir@librem.one> | 2025-08-30 09:50:03 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2025-08-30 09:50:03 -0500 |
commit | 1b94482d3b93a0ffbe3216765948a9c60b9d6a91 (patch) | |
tree | 519647d1f7f39e95261d84e91ca2e83ee6d237de /mailsync | |
parent | 9e4558b7be8ee49969302b09f04037f7800b47aa (diff) |
Maybe fix weird syntax in mailsync?
Diffstat (limited to 'mailsync')
-rwxr-xr-x | mailsync | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -68,7 +68,8 @@ syncandnotify() { "$HOME/.local/share/mail/$acc/inbox/cur/"\ -type f -newer "${XDG_CONFIG_HOME:-$HOME/.config}/mutt/.mailsynclastrun" 2> /dev/null) newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l) - case 1 in + one="1" + case "$one" in $((newcount > 0)) ) notify "$acc" "$newcount" ;; esac } |