Fix branch menu for update mode in install script

When using --branch with an up-to-date installation, the script was falling
into update mode but showing generic 'Update to latest version' instead of
the branch-specific menu.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
courtmanr@gmail.com
2025-05-28 09:56:26 +01:00
parent 43bc23dc36
commit e63134fa44
+14
View File
@@ -458,6 +458,20 @@ check_installation_status_and_determine_action() {
4) prompt_for_cron_setup; INSTALL_MODE="cancel" ;;
*) print_error "Invalid choice."; INSTALL_MODE="error" ;;
esac
elif [ -n "$SPECIFIED_BRANCH" ]; then
echo "Choose an action:"
echo " 1) Install branch $SPECIFIED_BRANCH (for testing)"
echo " 2) Remove Pulse"
echo " 3) Cancel"
echo " 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 "Choose an action:"
echo " 1) Update Pulse to the latest version $TARGET_TAG"