diff --git a/commands/self-update.go b/commands/self-update.go index 750d7f6..e52e56d 100644 --- a/commands/self-update.go +++ b/commands/self-update.go @@ -40,7 +40,8 @@ var SelfUpdateCommand = cli.Command{ } arch := utils.GetSystemArch() var asset *core.GithubApiReleaseAsset - for _, x := range release.Assets { + for i := range release.Assets { + x := release.Assets[i] if strings.HasSuffix(x.Name, arch) { asset = &x break