From 54e4d5b67fbf6cd33522b9b587b08f7fb2333852 Mon Sep 17 00:00:00 2001 From: Developer Date: Thu, 23 Apr 2026 20:00:39 -0400 Subject: [PATCH] CRITICAL FIX: Handle background job failures in wait command Line 1900: Changed 'wait' to 'wait || true' - Background IP reputation update jobs may fail (incomplete features) - With set -e, failed wait command exits entire script - Using '|| true' allows script to continue even if background jobs fail - Allows threat score calculation to complete and next functions to run This fixes the script exit issue after 'Calculating threat scores...' --- modules/security/bot-analyzer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/security/bot-analyzer.sh b/modules/security/bot-analyzer.sh index de9de1f..7116832 100755 --- a/modules/security/bot-analyzer.sh +++ b/modules/security/bot-analyzer.sh @@ -1896,8 +1896,8 @@ calculate_threat_scores() { fi done | sort -t'|' -k1 -rn > "$TEMP_DIR/threat_scores.txt" - # Wait for background IP reputation updates to complete - wait + # Wait for background IP reputation updates to complete (don't fail if background jobs error) + wait || true print_success "Threat scores calculated and IP reputation updated" }