CRITICAL FIX: Sync malware scanner menu fix to production branch
FIXED: - detect_scanners() no longer blocks menu when scanners aren't installed - Removed show_scanner_installation_guide() call from detection - main() no longer exits early if no scanners detected - Menu always displays with option 9 'Install all scanners' This syncs the critical menu fix from dev branch (beta) to production (main) ensuring both branches work correctly.
This commit is contained in:
@@ -91,13 +91,9 @@ detect_scanners() {
|
|||||||
available_scanners+=("rkhunter")
|
available_scanners+=("rkhunter")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${#available_scanners[@]} -eq 0 ]; then
|
# Note: If no scanners are found, available_scanners array will be empty
|
||||||
echo -e "${RED}No malware scanners detected!${NC}"
|
# Menu option 9 allows installation, so we don't exit here
|
||||||
echo ""
|
# Just return success to allow menu to display
|
||||||
show_scanner_installation_guide
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2540,9 +2536,9 @@ generate_client_report() {
|
|||||||
|
|
||||||
# Main execution
|
# Main execution
|
||||||
main() {
|
main() {
|
||||||
if ! detect_scanners; then
|
# Detect scanners (populate available_scanners array)
|
||||||
exit 1
|
# Don't exit if none found - menu option 9 allows installation
|
||||||
fi
|
detect_scanners || true
|
||||||
|
|
||||||
show_scan_menu
|
show_scan_menu
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user