From 609c40d5d0b47ac27ce94b02cc1d4bb130488e40 Mon Sep 17 00:00:00 2001 From: Developer Date: Fri, 20 Mar 2026 00:23:46 -0400 Subject: [PATCH] FIX: Exit menu confirmation prompt not displaying - Separate prompt display from read command - Print prompt to stderr before attempting read - Show thanks message even if read fails - Ensures exit menu always displays something to user Impact: Exit confirmation prompt now properly visible when user selects option 0. --- launcher.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/launcher.sh b/launcher.sh index da77948..8cc9d66 100755 --- a/launcher.sh +++ b/launcher.sh @@ -815,8 +815,13 @@ main() { 7) run_module "maintenance" "cleanup-toolkit-data.sh" ;; 0) echo "" - if ! read -p "Clean history and remove traces? (yes/no): " clean_hist /dev/null; then - return 0 # Exit if read fails + echo "Clean history and remove traces? (yes/no): " >&2 + if ! read -r clean_hist /dev/null; then + # Exit if read fails - just assume no cleanup + echo "" + echo "Thanks for using Server Management Toolkit!" + echo "" + return 0 fi if [ "$clean_hist" = "yes" ]; then