mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-30 04:21:19 -08:00
fix(upgrade): use correct version to compare against
This commit is contained in:
parent
b356900c30
commit
7ab48aff70
|
@ -57,7 +57,7 @@ var upgradeCmd = &cobra.Command{
|
|||
|
||||
version := fmt.Sprintf("v%s", build.Version)
|
||||
|
||||
if upgrade.IsMajorUpgrade(build.Version, latest) {
|
||||
if upgrade.IsMajorUpgrade(version, latest) {
|
||||
message := terminal.StopProgress()
|
||||
message += fmt.Sprintf("\n🚨 major upgrade available: %s -> %s, use oh-my-posh upgrade --force to upgrade\n\n", version, latest)
|
||||
fmt.Print(message)
|
||||
|
|
Loading…
Reference in a new issue