summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-03-22 21:38:11 -0400
committerLuke Smith <luke@lukesmith.xyz>2021-03-22 21:38:11 -0400
commitde58c9869347024219ad883807450741cef71556 (patch)
treeb44fe4a18c4a7712ed8cd0f6f95575f32540ee68
parentc9419f72b0750bbd205e36dfa0fc64e12cdbad20 (diff)
no msg
-rwxr-xr-xbin/mailsync2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync
index ece503e..f61fb80 100755
--- a/bin/mailsync
+++ b/bin/mailsync
@@ -14,7 +14,7 @@
# Run only if user logged in (prevent cron errors)
pgrep -u "${USER:=$LOGNAME}" >/dev/null || { echo "$USER not logged in; sync will not run."; exit ;}
# Run only if not already running in other instance
-pgrep -x mbsync >/dev/null && { echo "mbsync is already running." ; exit ;}
+pidof -s mbsync >/dev/null && { echo "mbsync is already running." ; exit ;}
# First, we have to get the right variables for the mbsync file, the pass
# archive, notmuch and the GPG home. This is done by searching common profile