mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
improve
This commit is contained in:
parent
7ce1f535f5
commit
286e174943
@ -64,9 +64,10 @@ func doSelfUpdate() {
|
||||
// latest version is the same as current version. It means current binary is up to date.
|
||||
log.Println("Current binary is the latest version", version)
|
||||
} else {
|
||||
log.Println("Prev version", dao.Version)
|
||||
dao.Version = latest.Version.String()
|
||||
client.Register(ctx, monitor.GetHost().PB())
|
||||
log.Println("Successfully updated to version", latest.Version)
|
||||
log.Println("Release note:\n", latest.ReleaseNotes)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user