diff options
author | Cameron Nemo <camerontnorman@gmail.com> | 2018-11-23 19:28:06 -0800 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2018-11-29 16:31:15 +0100 |
commit | c95b0c00842219d98d43a5f859ecbb995e4d438e (patch) | |
tree | eac16d35392f9b96e3deb24b3b6627b2b4718ac5 /sv/snooze-weekly/run | |
parent | 206eda3ca7b1e7a9cf51d2e630fcf62b45455997 (diff) | |
download | snooze-c95b0c00842219d98d43a5f859ecbb995e4d438e.tar.gz snooze-c95b0c00842219d98d43a5f859ecbb995e4d438e.tar.xz snooze-c95b0c00842219d98d43a5f859ecbb995e4d438e.zip |
sv: only invoke run-parts if the directory exists
Closes: #7 [via git-merge-pr]
Diffstat (limited to 'sv/snooze-weekly/run')
-rwxr-xr-x | sv/snooze-weekly/run | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sv/snooze-weekly/run b/sv/snooze-weekly/run index a3228c7..0a6b849 100755 --- a/sv/snooze-weekly/run +++ b/sv/snooze-weekly/run @@ -1,4 +1,4 @@ #!/bin/sh mkdir -p /var/cache/snooze exec snooze -w 0 -s 7d -t /var/cache/snooze/weekly -- sh -c \ - "run-parts --lsbsysinit /etc/cron.weekly; : > /var/cache/snooze/weekly" + "test -d /etc/cron.weekly && run-parts --lsbsysinit /etc/cron.weekly; : > /var/cache/snooze/weekly" |