diff options
author | Luke Smith <luke@lukesmith.xyz> | 2019-05-07 09:40:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-07 09:40:03 -0400 |
commit | 71703f8f55e3e3fb151fb8b0c7615d570597c439 (patch) | |
tree | 8151e6e8a09aece1a042e462146129fb584e56f8 /bin/mailsync | |
parent | c5e12600b919a9bebfb14c12421b4ab6d742a785 (diff) | |
parent | c56b1396141b604ee3aa1e5a4f675ff62f137b79 (diff) |
Merge pull request #200 from Kr1ss-XD/master
mailsync: fix early exit on graphical(-only) login
Diffstat (limited to 'bin/mailsync')
-rwxr-xr-x | bin/mailsync | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync index 8ae8758..43429f5 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -2,7 +2,7 @@ # Sync mail and give notification if there is new mail. # Run only if user logged in (prevent cron errors) -w | grep "^$USER\W" >/dev/null || exit +pgrep -cu "$USER" >/dev/null || exit # Checks for internet connection and set notification script. ping -q -c 1 1.1.1.1 > /dev/null || exit |