summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2025-08-30 09:50:03 -0500
committerzachir <zachir@librem.one>2025-08-30 09:50:03 -0500
commit1b94482d3b93a0ffbe3216765948a9c60b9d6a91 (patch)
tree519647d1f7f39e95261d84e91ca2e83ee6d237de
parent9e4558b7be8ee49969302b09f04037f7800b47aa (diff)
Maybe fix weird syntax in mailsync?
-rwxr-xr-xmailsync3
1 files changed, 2 insertions, 1 deletions
diff --git a/mailsync b/mailsync
index 8ac5978..7452222 100755
--- a/mailsync
+++ b/mailsync
@@ -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
}