This commit is contained in:
Luke Smith 2019-06-01 17:58:35 -04:00
parent effa100e04
commit e408f4b290
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

View File

@ -4,7 +4,7 @@
# Run only if user logged in (prevent cron errors)
pgrep -u "$USER" >/dev/null || exit
# Run only if not already running in other instance
[ "$(pgrep -xf "sh /usr/bin/mailsync.*" | wc -l)" -eq 2 ] || exit
pgrep -x mailsync >/dev/null && exit
# Checks for internet connection and set notification script.
ping -q -c 1 1.1.1.1 > /dev/null || exit