Skip to content

Commit c0dae8f

Browse files
committed
update self updater path
1 parent f88057e commit c0dae8f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

agent/updates/update.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ func UpdateDependencies(cnf *config.Config) {
6666
}
6767
}
6868

69-
utils.Execute(fmt.Sprintf(config.UpdaterSelf, ""), utils.GetMyPath())
69+
err = utils.Execute(filepath.Join(utils.GetMyPath(), fmt.Sprintf(config.UpdaterSelf, "")), utils.GetMyPath())
70+
if err != nil {
71+
utils.Logger.ErrorF("error executing updater: %v", err)
72+
}
7073
}
7174

7275
os.Remove(filepath.Join(utils.GetMyPath(), "version_new.json"))

0 commit comments

Comments
 (0)