summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}