summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/mailsync2
-rwxr-xr-xbin/mw1
2 files changed, 1 insertions, 2 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
diff --git a/bin/mw b/bin/mw
index 2989717..4ecbcfa 100755
--- a/bin/mw
+++ b/bin/mw
@@ -101,7 +101,6 @@ bind index gg first-entry
unmailboxes *
unalternates *
unset signature
-unmacro index o
$synccmd
" > "$accdir/$idnum-$fulladdr.muttrc"