瀏覽代碼

patch mailsync on macOS; fixes #725

The macOS version of `pidof` doesn't implement the `-s` flag.
tags/v3.3
Kr1ss 3 年之前
父節點
當前提交
b9a95a055a
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 23F078862ACFE50
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      bin/mailsync

+ 1
- 1
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 -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


Loading…
取消
儲存