From 29872dcafced44bf76c45ed0be6d6c635be87953 Mon Sep 17 00:00:00 2001 From: "courtmanr@gmail.com" Date: Tue, 29 Apr 2025 11:25:58 +0100 Subject: [PATCH] Debug(scripts): Add set -x trace to check_installation_status --- scripts/install-pulse.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/install-pulse.sh b/scripts/install-pulse.sh index 8ded4f12a..7c4a1947c 100644 --- a/scripts/install-pulse.sh +++ b/scripts/install-pulse.sh @@ -51,10 +51,14 @@ check_root() { # --- Installation Status Check & Action Determination --- check_installation_status_and_determine_action() { + # Add trace for debugging + set -x + # Check if running in non-interactive update mode FIRST if [ "$MODE_UPDATE" = true ]; then print_info "Running in non-interactive update mode..." INSTALL_MODE="update" + set +x # Turn off trace before returning return 0 # Continue to main update logic fi @@ -135,6 +139,9 @@ check_installation_status_and_determine_action() { esac fi # We don't return here, INSTALL_MODE is now set globally for the main logic + + # Ensure trace is turned off before exiting function + set +x } # --- System Setup Functions --- (apt_update_upgrade, install_dependencies, setup_node, create_pulse_user)