Handle update error
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
This commit is contained in:
parent
e560cf14ed
commit
d81fbc64ef
7
main.go
7
main.go
@ -20,7 +20,12 @@ func main() {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
} else if os.Args[1] == "upgrade" {
|
} else if os.Args[1] == "upgrade" {
|
||||||
fmt.Print("Trying Upgrade... ")
|
fmt.Print("Trying Upgrade... ")
|
||||||
update(gitTag)
|
err := update(gitTag)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println(err)
|
||||||
|
} else {
|
||||||
|
fmt.Println("Success")
|
||||||
|
}
|
||||||
} else if os.Args[1] == "version" {
|
} else if os.Args[1] == "version" {
|
||||||
fmt.Print("Version ")
|
fmt.Print("Version ")
|
||||||
fmt.Println(gitTag)
|
fmt.Println(gitTag)
|
||||||
|
Loading…
Reference in New Issue
Block a user