From 43bc23dc36477e1d91938e8bb3358e7680ea7d59 Mon Sep 17 00:00:00 2001 From: "courtmanr@gmail.com" Date: Wed, 28 May 2025 09:54:03 +0100 Subject: [PATCH] Improve install script menu clarity for --branch option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add specific menu case for branch installations - Show 'Install branch X (for testing)' instead of confusing 'Update to latest version' - Makes it clear that option 1 will install the specified branch 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- scripts/install-pulse.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/install-pulse.sh b/scripts/install-pulse.sh index 54975ac09..7acbc088a 100755 --- a/scripts/install-pulse.sh +++ b/scripts/install-pulse.sh @@ -414,6 +414,20 @@ check_installation_status_and_determine_action() { 4) INSTALL_MODE="cancel" ;; *) print_error "Invalid choice."; INSTALL_MODE="error" ;; esac + elif [ -n "$SPECIFIED_BRANCH" ]; then + echo -e "Choose an action:" + echo -e " 1) Install branch $SPECIFIED_BRANCH (for testing)" + echo -e " 2) Remove Pulse" + echo -e " 3) Cancel" + echo -e " 4) Manage automatic updates" + read -p "Enter your choice [1-4]: " user_choice + case $user_choice in + 1) INSTALL_MODE="update" ;; + 2) INSTALL_MODE="remove" ;; + 3) INSTALL_MODE="cancel" ;; + 4) prompt_for_cron_setup; INSTALL_MODE="cancel" ;; + *) print_error "Invalid choice."; INSTALL_MODE="error" ;; + esac else echo -e "Choose an action:" echo -e " 1) Manage automatic updates"