summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-26 09:41:26 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-04-26 09:41:26 -0400
commit94c56002452f98ebcda43c03500ca725c8654f34 (patch)
treea0b241b20aae95ce49d07985f3a7ae5e8331d53e /bin
parentf0ba067b81f768535de134518402d068d22863b3 (diff)
one mailsync at a time please
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mailsync1
1 files changed, 1 insertions, 0 deletions
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