From c129d37b1353745f657c8d8289800a9cbcfe776b Mon Sep 17 00:00:00 2001 From: "courtmanr@gmail.com" Date: Wed, 23 Apr 2025 15:00:09 +0100 Subject: [PATCH] fix: Prevent set -e exit on grep in prompt_for_cron_setup --- scripts/install-pulse.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-pulse.sh b/scripts/install-pulse.sh index 200a9140f..fc175f020 100644 --- a/scripts/install-pulse.sh +++ b/scripts/install-pulse.sh @@ -592,7 +592,7 @@ prompt_for_cron_setup() { # Always get the full crontab, even if empty local crontab_content crontab_content=$(crontab -l -u root 2>/dev/null || true) - existing_cron=$(echo "$crontab_content" | grep -A 1 "$CRON_IDENTIFIER") + existing_cron=$(echo "$crontab_content" | grep -A 1 "$CRON_IDENTIFIER" || true) if [ -n "$existing_cron" ]; then comment_line=$(echo "$existing_cron" | head -n 1) cron_command_line=$(echo "$existing_cron" | tail -n 1)