From d5c97e78d80177119421f9dade324b04f2b00126 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Thu, 9 Apr 2020 01:30:04 +0300 Subject: mail scripts for aerc+mbsync; goodbye neomutt --- dotfiles/.local/bin/newssync | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dotfiles/.local/bin/newssync') diff --git a/dotfiles/.local/bin/newssync b/dotfiles/.local/bin/newssync index 607188d..ebe41e1 100755 --- a/dotfiles/.local/bin/newssync +++ b/dotfiles/.local/bin/newssync @@ -1,5 +1,8 @@ #!/bin/sh +# Run only if user logged in (prevent cron errors) +w | grep "^$USER\W" >/dev/null || exit + # Don't try to update feed if newsboat is already running if pidof newsboat; then exit -- cgit v1.2.3