Automated backup: 2023-10-09 10:04:01

This commit is contained in:
askiiart 2023-10-09 10:04:01 -05:00
parent 41605d4318
commit 3c8cae5c48
No known key found for this signature in database
GPG key ID: 498440A5CD6FAA2C

View file

@ -1,5 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
crontab -l | grep -q "* * * * * $GIT_DIR/commit.sh" || (crontab -l 2>/dev/null; echo "* * * * * $GIT_DIR/commit.sh") | crontab -
(crontab -l 2>/dev/null; echo "0 * * * * $GIT_DIR/commit.sh") | crontab -