Fix: Double arithmetic syntax error in generate_comparison_report (line 2073)
This commit is contained in:
@@ -2156,7 +2156,7 @@ for scanner in "${available_scanners[@]}"; do
|
||||
# Extract scan results from event log (more reliable than parsing output)
|
||||
# Maldet logs to /usr/local/maldetect/logs/event_log
|
||||
# Use dynamic path search for portability across all platforms (FIXED Issue 2: comprehensive path discovery)
|
||||
local event_log=""
|
||||
event_log=""
|
||||
|
||||
# Search standard locations in order of likelihood
|
||||
for search_path in \
|
||||
@@ -2556,7 +2556,7 @@ STANDALONE_EOF
|
||||
fi
|
||||
|
||||
# Inject MALDET_ONLY flag for Maldet-dedicated scans
|
||||
local maldet_flag="${MALDET_ONLY:-0}"
|
||||
maldet_flag="${MALDET_ONLY:-0}"
|
||||
if ! sed -i "s|PLACEHOLDER_MALDET_ONLY|$maldet_flag|" "$session_dir/scan.sh"; then
|
||||
echo -e "${RED}ERROR: Failed to inject MALDET_ONLY flag${NC}"
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user