Loading .shell/lib/cron-append.awk 0 → 100755 +12 −0 Original line number Diff line number Diff line #!/usr/bin/awk -f /cron.daily/{daily_found=1} /cron.weekly/{weekly_found=1} {print} END{ if (!daily_found) print \ "0 10 * * * run-parts --report ~/.config/cron.daily" if (!weekly_found) print \ "0 10 * * 1 run-parts --report ~/.config/cron.weekly" } .shell/lib/shell-funcs.sh +5 −0 Original line number Diff line number Diff line Loading @@ -201,6 +201,11 @@ do_update() systemctl --user enable "${unit##*/}" 2>/dev/null done fi # enable cron scripts { crontab -l || true; } | ~/.shell/lib/cron-append.awk | crontab - } has resize || resize() { Loading Loading
.shell/lib/cron-append.awk 0 → 100755 +12 −0 Original line number Diff line number Diff line #!/usr/bin/awk -f /cron.daily/{daily_found=1} /cron.weekly/{weekly_found=1} {print} END{ if (!daily_found) print \ "0 10 * * * run-parts --report ~/.config/cron.daily" if (!weekly_found) print \ "0 10 * * 1 run-parts --report ~/.config/cron.weekly" }
.shell/lib/shell-funcs.sh +5 −0 Original line number Diff line number Diff line Loading @@ -201,6 +201,11 @@ do_update() systemctl --user enable "${unit##*/}" 2>/dev/null done fi # enable cron scripts { crontab -l || true; } | ~/.shell/lib/cron-append.awk | crontab - } has resize || resize() { Loading