From 63b341cacff018e9608b2584a3c49fa20487470f Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 8 Sep 2022 03:21:29 +0800 Subject: Make crontab more robust --- crontab | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crontab b/crontab index 2339f33..a2c65b3 100644 --- a/crontab +++ b/crontab @@ -1,6 +1,6 @@ -*/30 * * * * /usr/bin/newsboat -x reload +*/30 * * * * command -v newsboat > /dev/null && newsboat -x reload */10 * * * * ~/bin/mailsync */10 * * * * command -v vdirsyncer > /dev/null && vdirsyncer sync -00 */3 * * * /usr/bin/trash-empty -f 30 +00 */3 * * * command -v trash-empty > /dev/null && /usr/bin/trash-empty -f 30 00 * * * * [ -e ~/.fehbg ] && DISPLAY=:0 ~/.fehbg -00 * * * * /usr/sbin/anacron -t ~/.dotfiles/anacrontab -S ~/.cache/anacron/spool +00 * * * * command -v anacron > /dev/null && /usr/sbin/anacron -t ~/.dotfiles/anacrontab -S ~/.cache/anacron/spool -- cgit v1.2.3