Handle update error

Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
This commit is contained in:
Lukas Bachschwell 2021-01-09 16:40:57 +01:00
parent e560cf14ed
commit d81fbc64ef
Signed by: lbsadmin
GPG Key ID: CCC6AA87CC8DF425

View File

@ -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)