From 3c8cae5c48a61e17c9ce6d82ae6feb4bdf4ea316 Mon Sep 17 00:00:00 2001 From: askiiart Date: Mon, 9 Oct 2023 10:04:01 -0500 Subject: [PATCH] Automated backup: 2023-10-09 10:04:01 --- create-cron-job.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/create-cron-job.sh b/create-cron-job.sh index 06dc556..ec35cdf 100755 --- a/create-cron-job.sh +++ b/create-cron-job.sh @@ -1,5 +1,4 @@ #!/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 - \ No newline at end of file +crontab -l | grep -q "* * * * * $GIT_DIR/commit.sh" || (crontab -l 2>/dev/null; echo "* * * * * $GIT_DIR/commit.sh") | crontab - \ No newline at end of file