From 12255646949f5de59c65f0f6d114dc5044dbd0db Mon Sep 17 00:00:00 2001 From: Kelin Date: Thu, 29 Jan 2026 22:41:31 -0500 Subject: [PATCH] Add UI tool availability check before running wizard - Menu now checks for whiptail/dialog before launching wizard - Prevents wizard crashes due to missing UI dependencies - Provides clear error message and installation instructions --- scripts/enhanced-setup/menu.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/enhanced-setup/menu.sh b/scripts/enhanced-setup/menu.sh index 5a537c9..073a7dc 100755 --- a/scripts/enhanced-setup/menu.sh +++ b/scripts/enhanced-setup/menu.sh @@ -256,6 +256,13 @@ handle_config_menu() { print_info "Starting interactive pre-deployment wizard..." print_info "The wizard will run and return to this menu when complete." echo + # Check if UI tools are available + if ! command_exists whiptail && ! command_exists dialog; then + print_error "Pre-deployment wizard requires whiptail or dialog to be installed" + print_info "Install with: sudo apt install whiptail" + read -rp "Press Enter to continue..." + continue + fi read -rp "Press Enter to continue..." if ./pre-deployment-wizard.sh; then print_success "Pre-deployment wizard completed successfully"