From 0af2ba94e223329c7ee4c8d0f78522c8d21b7a16 Mon Sep 17 00:00:00 2001 From: tb14 Date: Tue, 1 Jul 2025 12:16:57 -0500 Subject: [PATCH] dont prompt about setting cron job if already done --- AmRRON-Setup-Script.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/AmRRON-Setup-Script.sh b/AmRRON-Setup-Script.sh index 70e6bed..929a953 100755 --- a/AmRRON-Setup-Script.sh +++ b/AmRRON-Setup-Script.sh @@ -1530,9 +1530,13 @@ a45be3e69decf6def/raw/1aeff0d78f85e86b868a4ba83ebce99e90532f48/findardop || fi - - echo ardoptools >> /tmp/cleanup - +if crontab -l 2>/dev/null | grep -q "/usr/local/bin/getardoplist" \ + && crontab -l 2>/dev/null | grep -q "/usr/local/bin/getvaralist"; then + echo "cron jobs are scheduled." +else + echo "One or both cron jobs are missing." + echo ardoptools >> /tmp/cleanup +fi }