dotfiles/create-cron-job.sh
2023-10-09 10:05:01 -05:00

4 lines
No EOL
172 B
Bash
Executable file

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