summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-11-28 16:27:10 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-11-28 16:27:10 -0500
commitb968bff93bb1a372bbb1a5a31a761fd09e964509 (patch)
treee53e1d0f227475abde809a2f8eee8abf3382b856 /bin
parent569bda9c5fddf131a962237422326de9929c6b77 (diff)
STATUSBAR var now in subshell to prevent error
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mailsync4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mailsync b/bin/mailsync
index 2cec271..2d82690 100755
--- a/bin/mailsync
+++ b/bin/mailsync
@@ -48,7 +48,7 @@ else
fi
echo " 🔃" > /tmp/imapsyncicon_"$USER"
-pkill -RTMIN+12 "${STATUSBAR:?}" >/dev/null 2>&1
+( pkill -RTMIN+12 "${STATUSBAR:?}" >/dev/null 2>&1 ) 2>/dev/null
# Parallelize multiple accounts
for account in $accounts
@@ -58,7 +58,7 @@ done
wait
rm -f /tmp/imapsyncicon_"$USER"
-pkill -RTMIN+12 "${STATUSBAR:?}" >/dev/null 2>&1
+( pkill -RTMIN+12 "${STATUSBAR:?}" >/dev/null 2>&1 ) 2>/dev/null
notmuch new 2>/dev/null