From 9ce21648680235a500cf203c2210d4fefde75d97 Mon Sep 17 00:00:00 2001 From: Developer Date: Sat, 21 Mar 2026 01:08:30 -0400 Subject: [PATCH] FIX: Add missing color variable definitions to generator CRITICAL BUG FIX: The generator script (malware-scanner.sh) was using color variables (CYAN, RED, YELLOW, GREEN, NC) in the show_scan_menu() and other functions, but these variables were never defined in the generator itself. This caused: - Menu display would have no color codes (empty variables) - Installation guide would have no color codes - Poor user experience on the menu system Solution: - Added color variable definitions at script start (matching launcher.sh) - RED, GREEN, YELLOW, CYAN, BOLD, NC are now defined - Colors will display correctly in all menu functions Note: Color variables were already defined in the heredoc (standalone scanner) but were missing from the generator code itself. --- modules/security/malware-scanner.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/security/malware-scanner.sh b/modules/security/malware-scanner.sh index 9283b4d..25389d2 100755 --- a/modules/security/malware-scanner.sh +++ b/modules/security/malware-scanner.sh @@ -10,6 +10,14 @@ set -eo pipefail +# Color definitions (matching launcher.sh) +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[1;33m' +CYAN='\033[0;36m' +BOLD='\033[1m' +NC='\033[0m' + SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" # Source required libraries (warn if missing, but allow graceful degradation)