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
1 changed files with 6 additions and 1 deletions

View File

@ -20,7 +20,12 @@ func main() {
os.Exit(1)
} else if os.Args[1] == "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" {
fmt.Print("Version ")
fmt.Println(gitTag)