diff --git a/modules/security/malware-scanner.sh b/modules/security/malware-scanner.sh index ff69c03..db0c78a 100755 --- a/modules/security/malware-scanner.sh +++ b/modules/security/malware-scanner.sh @@ -1480,16 +1480,17 @@ fi # Filter scanners if MALDET_ONLY is set (for Maldet-specific menu) if [ "${MALDET_ONLY:-0}" = "1" ]; then log_message "Maldet-only mode enabled" - echo "🔍 Running Maldet-only scan (fastest, Linux-focused)" + echo "Running Maldet-only scan (fastest, Linux-focused)" echo "" # Check if Maldet is available - if [[ " ${AVAILABLE_SCANNERS[@]} " =~ " maldet " ]]; then - AVAILABLE_SCANNERS=("maldet") + if [[ " ${available_scanners[@]} " =~ " maldet " ]]; then + available_scanners=("maldet") log_message "Filtered to Maldet only" else log_message "ERROR: Maldet not installed but MALDET_ONLY was set" echo -e "${RED}ERROR: Maldet is not installed${NC}" - exit 1 + read -p "Press Enter to continue..." < /dev/tty 2>/dev/null || true + return 1 fi fi