From bb80586473959539215959b599bc537490ca004a Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 18 Mar 2019 11:29:37 +0000 Subject: [PATCH] bin/get-github-release: fetch the most recent not the least recent --- bin/get-github-release.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/get-github-release.go b/bin/get-github-release.go index 970f545a9..1894cee2c 100644 --- a/bin/get-github-release.go +++ b/bin/get-github-release.go @@ -244,8 +244,10 @@ func getAssetFromReleasesPage(project string, matchName *regexp.Regexp) (assetUR if a.Key == "href" { if name := path.Base(a.Val); matchName.MatchString(name) && isOurOsArch(name) { if u, err := rest.URLJoin(base, a.Val); err == nil { - assetName = name - assetURL = u.String() + if assetName == "" { + assetName = name + assetURL = u.String() + } } } break