Debug(scripts): Add set -x trace to check_installation_status

This commit is contained in:
courtmanr@gmail.com
2025-04-29 11:25:58 +01:00
parent b8de6bdc0c
commit 29872dcafc
+7
View File
@@ -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)