chore(upgrade): do not hint shell restart on same version
Some checks failed
Code QL / code-ql (push) Waiting to run
Release / changelog (push) Waiting to run
Release / artifacts (push) Blocked by required conditions
Azure Static Web Apps CI/CD / Build and Deploy (push) Has been cancelled

This commit is contained in:
Jan De Dobbeleer 2024-11-17 11:27:25 +01:00 committed by Jan De Dobbeleer
parent f1f9217c90
commit f32e117736

View file

@ -61,7 +61,14 @@ func (m *model) Init() tea.Cmd {
return 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))
}() }()
}() }()