mirror of
https://github.com/MedzikUser/go-github-selfupdate.git
synced 2024-08-15 03:25:29 +00:00
fix UpdateSelf invocation on custom Updater object
This commit is contained in:
parent
ef42c4e258
commit
d1140d3bf8
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ func (up *Updater) UpdateSelf(current semver.Version, slug string) (*Release, er
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return UpdateCommand(cmdPath, current, slug)
|
return up.UpdateCommand(cmdPath, current, slug)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateTo downloads an executable from assetURL and replace the current binary with the downloaded one.
|
// UpdateTo downloads an executable from assetURL and replace the current binary with the downloaded one.
|
||||||
|
|
Loading…
Reference in a new issue