diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-11-30 19:28:53 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-11-30 21:22:47 +0100 |
commit | eb3da3ff44111217c3acab216f8b647c704f74b2 (patch) | |
tree | 7e01212ca9a6da8ef85e85c10a1f31bf93c52f14 /pkg/config/version/checknewer.go | |
parent | cc1b7ae17304cfe62da0bb77be507296404918b4 (diff) |
[bug] version check in osx
Diffstat (limited to 'pkg/config/version/checknewer.go')
-rw-r--r-- | pkg/config/version/checknewer.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/config/version/checknewer.go b/pkg/config/version/checknewer.go index f253877..78b5b31 100644 --- a/pkg/config/version/checknewer.go +++ b/pkg/config/version/checknewer.go @@ -25,10 +25,12 @@ func CanUpgrade() bool { switch runtime.GOOS { case "windows": uri += "windows" + case "darwin": + uri += "osx" case "linux": + fallthrough + default: uri += "linux" - case "osx": - uri += "osx" } uri += "/lastver" resp, err := http.Get(uri) |