From eda070c6a70667198a7135b66d05053e57071a1a Mon Sep 17 00:00:00 2001 From: Michael Feher Date: Tue, 7 Jan 2025 10:46:00 -0500 Subject: [PATCH 1/2] fix: bootstrap command combinations --- ui/bootstrap/model.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/bootstrap/model.go b/ui/bootstrap/model.go index 23ce2a25..95364c2f 100644 --- a/ui/bootstrap/model.go +++ b/ui/bootstrap/model.go @@ -73,10 +73,10 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch m.Question { case InstallQuestion: m.Question = CatchupQuestion - m.BootstrapMsg.Install = true + m.BootstrapMsg.Install = false case CatchupQuestion: m.Question = WaitingQuestion - m.BootstrapMsg.Catchup = true + m.BootstrapMsg.Catchup = false case WaitingQuestion: return m, tea.Sequence(m.Outside.Emit(m.BootstrapMsg), tea.Quit) } From d9a2545c6fe986571e71694834d88d7684c98ad3 Mon Sep 17 00:00:00 2001 From: Michael Feher Date: Tue, 7 Jan 2025 10:59:47 -0500 Subject: [PATCH 2/2] fix: bootstrap installed detection --- cmd/bootstrap.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/bootstrap.go b/cmd/bootstrap.go index a9bcac02..f652ec08 100644 --- a/cmd/bootstrap.go +++ b/cmd/bootstrap.go @@ -64,6 +64,10 @@ var bootstrapCmd = &cobra.Command{ fmt.Println(out) model := bootstrap.NewModel() + if algod.IsInstalled() { + model.BootstrapMsg.Install = false + model.Question = bootstrap.CatchupQuestion + } p := tea.NewProgram(model) var msg *app.BootstrapMsg go func() {