summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-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)