summaryrefslogtreecommitdiff
path: root/bin/mailsync
diff options
context:
space:
mode:
authorKr1ss <kr1ss.x@yandex.com>2021-06-15 22:08:30 +0200
committerKr1ss <kr1ss.x@yandex.com>2021-06-15 22:08:30 +0200
commitb0452a39d5b573a9a12da0064c0341846ba8ff5d (patch)
tree7744ef578c8699a203e5febdf8afa5947b53ed2a /bin/mailsync
parentb9a95a055a5737c7765c2d21451d504c9818ba80 (diff)
remove `pidof -s` flag
Ref: https://github.com/LukeSmithxyz/mutt-wizard/commit/b9a95a055a5737c7765c2d21451d504c9818ba80#commitcomment-52203708
Diffstat (limited to 'bin/mailsync')
-rwxr-xr-xbin/mailsync2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync
index a026354..f00baf1 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
-pidof $([ $(uname) != Darwin ] && echo '-s') mbsync >/dev/null && { echo "mbsync is already running."; exit ;}
+pidof 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