From 67cec6fae34ef7ceed29eea3f7df42186b0d1bcd Mon Sep 17 00:00:00 2001 From: luukvbaal <31730729+luukvbaal@users.noreply.github.com> Date: Tue, 7 Apr 2020 15:10:23 +0200 Subject: [PATCH] prevent gpg-pinentry --- bin/mailsync | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/mailsync b/bin/mailsync index 326279c..876925f 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -6,6 +6,7 @@ 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 ;} +while pgrep -x ${LOCK:-slock} >/dev/null; do sleep 10; done # Checks for internet connection and set notification script. ping -q -c 1 1.1.1.1 > /dev/null || { echo "No internet connection detected."; exit ;}