summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorluukvbaal <31730729+luukvbaal@users.noreply.github.com>2019-05-30 16:46:12 +0200
committerGitHub <noreply@github.com>2019-05-30 16:46:12 +0200
commit5d72b5da981f8c71b7fe47997b7fd309e6e861cd (patch)
treec1e299047a40c5bb0ca65cd6084d8ac92eedabe0 /bin
parent7d3658238b75790cebcf744c734079dd2ec4b11c (diff)
unnecessary sed command
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mailsync2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync
index b33de11..387ce65 100755
--- a/bin/mailsync
+++ b/bin/mailsync
@@ -24,7 +24,7 @@ syncandnotify() {
acc="$(echo "$account" | sed "s/.*\///")"
mbsync "$acc"
new=$(find "$HOME/.local/share/mail/$acc/INBOX/new/" "$HOME/.local/share/mail/$acc/Inbox/new/" "$HOME/.local/share/mail/$acc/inbox/new/" -type f -newer "$HOME/.config/mutt/.mailsynclastrun" 2> /dev/null)
- newcount=$(find "$HOME/.local/share/mail/$acc/INBOX/new/" "$HOME/.local/share/mail/$acc/Inbox/new/" "$HOME/.local/share/mail/$acc/inbox/new/" -type f -newer "$HOME/.config/mutt/.mailsynclastrun" 2> /dev/null | wc -l)
+ newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l)
if [ "$newcount" -gt "0" ]; then
notify "$acc" "$newcount" &
for file in $new; do