blob: bc8e04eeb3134ef033afe13ab5dd6ca4f79a2162 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package main
import (
"0xacab.org/leap/bitmask-vpn/pkg/config/version"
"fmt"
)
func main() {
fmt.Println("Testing version upgrade (checks network)")
fmt.Println("-> set DEBUG=1 for details")
u := version.CanUpgrade()
switch {
case u:
fmt.Println("can upgrade")
case !u:
fmt.Println("no new version available")
}
}
|