From 94c56002452f98ebcda43c03500ca725c8654f34 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 26 Apr 2019 09:41:26 -0400 Subject: [PATCH] one mailsync at a time please --- bin/mailsync | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/mailsync b/bin/mailsync index 9750ca3..ea645c3 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -3,6 +3,7 @@ # Checks for internet connection and set notification script. ping -q -c 1 1.1.1.1 > /dev/null || exit +pgrep -x mbsync >/dev/null && echo "mbsync already running." && exit export DISPLAY=:0.0