diff --git a/modules/backup/mysql-restore-to-sql.sh b/modules/backup/mysql-restore-to-sql.sh index bc67af6..4e1effd 100755 --- a/modules/backup/mysql-restore-to-sql.sh +++ b/modules/backup/mysql-restore-to-sql.sh @@ -295,9 +295,8 @@ show_step_menu() { echo " [5] Go to Step 5 (Create SQL dump)" echo " [C] Compare original vs recovered database" echo " [R] Review current state" - echo " [0] Exit" echo "" - echo -n "Select action (0-5, C, R): " + echo -n "Select action (1-5, C, R): " return 0 } @@ -3183,13 +3182,6 @@ main() { show_current_state press_enter ;; - 0) - # Exit - echo "" - echo "Exiting MySQL Restore Script" - press_enter - return 0 - ;; *) print_error "Invalid option: $menu_choice" press_enter @@ -3197,9 +3189,7 @@ main() { esac done - # SAFETY: This line should never be reached (loop is infinite) - # But if it somehow is, return 0 to exit gracefully - return 0 + # Loop is infinite - script never exits naturally } # Run main function