self update at the end is triggered
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
ad2c989f77
commit
c26a082e75
|
@ -150,16 +150,18 @@ func createReleaseBox(box *gui.Node) {
|
|||
|
||||
gopath := release.current.String()
|
||||
cmd := []string{"go", "get", "-v", gopath + "@" + release.version.String()}
|
||||
log.Info("SHOULD RUN cmd HERE to update myself:", cmd)
|
||||
log.Info("SHOULD RUN cmd HERE:", cmd)
|
||||
log.Info("SHOULD RUN cmd HERE:", cmd)
|
||||
|
||||
if release.guireleaser != nil {
|
||||
if release.guireleaser == nil {
|
||||
log.Info("CAN NOT SELF UPDATE HERE. cmd =", cmd)
|
||||
return
|
||||
} else {
|
||||
os.Unsetenv("GO111MODULE")
|
||||
log.Info("TRYING TO SELF UPDATE HERE. cmd =", cmd)
|
||||
err, out := release.guireleaser.status.RunCmd(cmd)
|
||||
if err == nil {
|
||||
log.Info("SELF UPDATE WORKED\n", out)
|
||||
log.Info("SELF UPDATE OK. out =", out)
|
||||
log.Info("SELF UPDATE WORKED")
|
||||
} else {
|
||||
log.Info("SELF UPDATE FAILED err =", err)
|
||||
log.Info("SELF UPDATE FAILED out =", out)
|
||||
|
|
Loading…
Reference in New Issue