Skip to content

Commit

Permalink
chore(upgrade): do not hint shell restart on same version
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Nov 17, 2024
1 parent f1f9217 commit f32e117
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/upgrade/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,14 @@ func (m *model) Init() tea.Cmd {
return
}

program.Send(resultMsg("🚀 Upgrade successful, restart your shell to take full advantage of the new functionality."))
message := "🚀 Upgrade successful"

current := fmt.Sprintf("v%s", build.Version)
if current != m.tag {
message += ", restart your shell to take full advantage of the new functionality"
}

program.Send(resultMsg(message))
}()
}()

Expand Down

0 comments on commit f32e117

Please sign in to comment.