From d1140d3bf826864b60e59a07693d4375b71b90f0 Mon Sep 17 00:00:00 2001 From: Fabian Ruff Date: Fri, 27 Apr 2018 16:07:51 +0200 Subject: [PATCH] fix UpdateSelf invocation on custom Updater object --- selfupdate/update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfupdate/update.go b/selfupdate/update.go index 844b830..d032da2 100644 --- a/selfupdate/update.go +++ b/selfupdate/update.go @@ -116,7 +116,7 @@ func (up *Updater) UpdateSelf(current semver.Version, slug string) (*Release, er if err != nil { 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.