From a704e250e1e6c83d47756e3fbb3b2a48b9d30307 Mon Sep 17 00:00:00 2001 From: Developer Date: Sat, 21 Mar 2026 00:44:33 -0400 Subject: [PATCH] CRITICAL FIX: Always show malware scanner menu (no installation guide gate) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FIXED: - detect_scanners() no longer blocks menu when scanners aren't installed - Removed show_scanner_installation_guide() call from detection - Menu always displays with option 9 'Install all scanners' - User can now select which scanners to install directly from menu BEHAVIOR CHANGE: - Before: No scanners → installation guide → exit code 1 → no menu - After: No scanners → menu with install option → user can install from there This restores the original user experience where the menu is always available. --- modules/security/malware-scanner.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/modules/security/malware-scanner.sh b/modules/security/malware-scanner.sh index cce8b24..3efcdfa 100755 --- a/modules/security/malware-scanner.sh +++ b/modules/security/malware-scanner.sh @@ -94,13 +94,9 @@ detect_scanners() { available_scanners+=("rkhunter") fi - if [ ${#available_scanners[@]} -eq 0 ]; then - echo -e "${RED}No malware scanners detected!${NC}" - echo "" - show_scanner_installation_guide - return 1 - fi - + # Note: If no scanners are found, available_scanners array will be empty + # Menu option 9 allows installation, so we don't exit here + # Just return success to allow menu to display return 0 }