mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-25 11:04:04 -08:00
chore(upgrade): do not hint shell restart on same version
This commit is contained in:
parent
f1f9217c90
commit
f32e117736
|
@ -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))
|
||||||
}()
|
}()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue