dotfiles/create-cron-job.sh

5 lines
173 B
Bash
Raw Normal View History

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