Automated backup: 2023-10-09 10:04:01
This commit is contained in:
parent
41605d4318
commit
3c8cae5c48
1 changed files with 1 additions and 2 deletions
|
@ -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 -
|
|
Loading…
Reference in a new issue