diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-04-09 01:30:04 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-04-09 01:30:04 +0300 |
commit | d5c97e78d80177119421f9dade324b04f2b00126 (patch) | |
tree | 7a637bf2a8ea613f7480301434e778ad6d8b6f42 /dotfiles/.local/bin/newssync | |
parent | 2a7d8cecace432898722b0d2c7a2543e1057cf74 (diff) | |
download | swayrice-d5c97e78d80177119421f9dade324b04f2b00126.tar.gz swayrice-d5c97e78d80177119421f9dade324b04f2b00126.zip |
mail scripts for aerc+mbsync; goodbye neomutt
Diffstat (limited to 'dotfiles/.local/bin/newssync')
-rwxr-xr-x | dotfiles/.local/bin/newssync | 3 |
1 files changed, 3 insertions, 0 deletions
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 |