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

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

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -e
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 "* * * * * $GIT_DIR/commit.sh") | crontab -