mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
only show remote upgrade if initpk was received
This commit is contained in:
@@ -897,9 +897,10 @@ func (msh *MShellProc) Launch() {
|
|||||||
if cproc != nil && cproc.InitPk != nil {
|
if cproc != nil && cproc.InitPk != nil {
|
||||||
msh.Remote.InitPk = cproc.InitPk
|
msh.Remote.InitPk = cproc.InitPk
|
||||||
mshellVersion = cproc.InitPk.Version
|
mshellVersion = cproc.InitPk.Version
|
||||||
}
|
if semver.Compare(mshellVersion, MShellVersion) < 0 {
|
||||||
if semver.Compare(mshellVersion, MShellVersion) < 0 {
|
// only set NeedsMShellUpgrade if we got an InitPk
|
||||||
msh.NeedsMShellUpgrade = true
|
msh.NeedsMShellUpgrade = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// no notify here, because we'll call notify in either case below
|
// no notify here, because we'll call notify in either case below
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user