aboutsummaryrefslogtreecommitdiff
path: root/crontab
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-09-08 03:21:29 +0800
committerGuangxiong Lin <[email protected]>2022-09-08 03:21:29 +0800
commit63b341cacff018e9608b2584a3c49fa20487470f (patch)
treec42f0a5372487d54cb4d74a1bd774de42df37758 /crontab
parentb94a510c571f3471ac13a5213d2db106b5bcf8db (diff)
downloaddotfiles-63b341cacff018e9608b2584a3c49fa20487470f.tar.gz
dotfiles-63b341cacff018e9608b2584a3c49fa20487470f.tar.bz2
dotfiles-63b341cacff018e9608b2584a3c49fa20487470f.zip
Make crontab more robust
Diffstat (limited to 'crontab')
-rw-r--r--crontab6
1 files 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