summaryrefslogtreecommitdiff
path: root/pkg/config
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-11-30 19:28:53 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-11-30 21:22:47 +0100
commiteb3da3ff44111217c3acab216f8b647c704f74b2 (patch)
tree7e01212ca9a6da8ef85e85c10a1f31bf93c52f14 /pkg/config
parentcc1b7ae17304cfe62da0bb77be507296404918b4 (diff)
[bug] version check in osx
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/version/checknewer.go6
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)