From 1c175d4e078e8a3af8f12b6f02a9f3e1bf79ff07 Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Sun, 24 Aug 2025 15:37:16 +0000 Subject: [PATCH] fix: menu options now actually execute instead of silently exiting The update and reinstall cases in the menu were missing exit statements, causing the script to continue running after completion and hit the fresh install path. This made it appear as if nothing happened when selecting menu options. Added exit 0 after print_completion for both update and reinstall cases. Removed debug output now that the issue is resolved. --- install.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index d053e950f..e9512e68d 100755 --- a/install.sh +++ b/install.sh @@ -958,8 +958,7 @@ main() { fi # Debug output to see what's happening - print_info "DEBUG: You selected option $choice" - print_info "DEBUG: RC_VERSION=$RC_VERSION, STABLE_VERSION=$STABLE_VERSION, CURRENT_VERSION=$CURRENT_VERSION" + # print_info "DEBUG: You selected option $choice" # Determine what action to take based on the dynamic menu local action="" @@ -978,12 +977,10 @@ main() { # Check if user selected RC update if [[ -n "$RC_VERSION" ]] && [[ "$RC_VERSION" != "$STABLE_VERSION" ]] && [[ "$RC_VERSION" != "$CURRENT_VERSION" ]]; then - print_info "DEBUG: RC section - choice=$choice, current_choice=$current_choice" if [[ "$choice" == "$current_choice" ]]; then action="update" target_version="$RC_VERSION" UPDATE_CHANNEL="rc" - print_info "DEBUG: RC update selected, target=$target_version" fi ((current_choice++)) fi @@ -1006,7 +1003,7 @@ main() { fi # Debug: Show what action was determined - print_info "DEBUG: Action determined: ${action:-'none'}" + # print_info "DEBUG: Action determined: ${action:-'none'}" case $action in update) @@ -1028,6 +1025,7 @@ main() { download_pulse start_pulse print_completion + exit 0 ;; reinstall) backup_existing @@ -1038,6 +1036,7 @@ main() { install_systemd_service start_pulse print_completion + exit 0 ;; remove) # Stop and disable service