Parcourir la source

patch mailsync on macOS; fixes #725

The macOS version of `pidof` doesn't implement the `-s` flag.
tags/v3.3
Kr1ss il y a 3 ans
Parent
révision
b9a95a055a
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 23F078862ACFE50
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      bin/mailsync

+ 1
- 1
bin/mailsync Voir le fichier

@@ -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 -s mbsync >/dev/null && { echo "mbsync is already running." ; exit ;}
pidof $([ $(uname) != Darwin ] && echo '-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


Chargement…
Annuler
Enregistrer