Add uberspace crontab handling
This commit is contained in:
11
bundles/uberspace-crontab-dir/files/crontab-dir-is-sync.sh
Executable file
11
bundles/uberspace-crontab-dir/files/crontab-dir-is-sync.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if [[ "$(crontab-dir-generate-crontab)" == "$(crontab -l)" ]]; then
|
||||
echo "crontab is up to date"
|
||||
exit 0
|
||||
else
|
||||
echo "crontab needs update"
|
||||
exit 1
|
||||
fi
|
Reference in New Issue
Block a user