From 119bddc10bd7882e6eaca91e06bbaff10fff3a37 Mon Sep 17 00:00:00 2001 From: Ivan Andreev Date: Thu, 13 May 2021 14:32:15 +0300 Subject: [PATCH] selfupdate: fix archive name on macos --- cmd/selfupdate/selfupdate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/selfupdate/selfupdate.go b/cmd/selfupdate/selfupdate.go index 1789b9cb7..c730382b7 100644 --- a/cmd/selfupdate/selfupdate.go +++ b/cmd/selfupdate/selfupdate.go @@ -337,8 +337,8 @@ func makeRandomExeName(baseName, extension string) (string, error) { func downloadUpdate(ctx context.Context, beta bool, version, siteURL, newFile, packageFormat string) error { osName := runtime.GOOS arch := runtime.GOARCH - if arch == "darwin" { - arch = "osx" + if osName == "darwin" { + osName = "osx" } archiveFilename := fmt.Sprintf("rclone-%s-%s-%s.%s", version, osName, arch, packageFormat)