From 0799a0bec506319198fc3c0a4e4bcc328b83789e Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 27 Jan 2016 11:43:26 -0800 Subject: [PATCH] update: Minio fix update url. --- update-main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/update-main.go b/update-main.go index 4fc972d96..4600fb3b2 100644 --- a/update-main.go +++ b/update-main.go @@ -140,7 +140,8 @@ func parseReleaseData(data string) (time.Time, *probe.Error) { // verify updates for releases. func getReleaseUpdate(updateURL string) { - newUpdateURL := updateURL + "/" + runtime.GOOS + "-" + runtime.GOARCH + "/minio.shasum" + newUpdateURLPrefix := updateURL + "/" + runtime.GOOS + "-" + runtime.GOARCH + newUpdateURL := newUpdateURLPrefix + "/minio.shasum" data, e := http.Get(newUpdateURL) fatalIf(probe.NewError(e), "Unable to read from update URL ‘"+newUpdateURL+"’.", nil) @@ -170,9 +171,9 @@ func getReleaseUpdate(updateURL string) { var downloadURL string if runtime.GOOS == "windows" { - downloadURL = updateURL + runtime.GOOS + "-" + runtime.GOARCH + "/minio.exe" + downloadURL = newUpdateURLPrefix + "/minio.exe" } else { - downloadURL = updateURL + runtime.GOOS + "-" + runtime.GOARCH + "/minio" + downloadURL = newUpdateURLPrefix + "/minio" } updateMsg := updateMessage{ Download: downloadURL,