From eab00a65104a0119be7a02e8940c66dda6f5e23f Mon Sep 17 00:00:00 2001 From: Developer Date: Sat, 21 Mar 2026 01:06:47 -0400 Subject: [PATCH] FIX: Add print_banner to required functions validation CRITICAL BUG FIX: print_banner was being called in show_scan_menu but was not listed as a required function in the validation check. If the common-functions.sh library failed to source properly, print_banner would be undefined, causing the menu to fail with 'command not found' error. Changes: - Added 'print_banner' to the list of required functions validated at startup - This ensures print_banner is available before attempting to use it - Script now fails early with clear error message if library is missing This prevents silent failures when the menu tries to display. --- modules/security/malware-scanner.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/security/malware-scanner.sh b/modules/security/malware-scanner.sh index 1942592..9283b4d 100755 --- a/modules/security/malware-scanner.sh +++ b/modules/security/malware-scanner.sh @@ -34,6 +34,7 @@ validate_required_functions() { local required_functions=( "confirm" "print_header" + "print_banner" "select_user_interactive" "get_user_domains" )