3 Commits

Author SHA1 Message Date
4a902c2f16 No replacemnets in names for release
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
2021-01-09 16:44:02 +01:00
b327d998c9 up alias
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
2021-01-09 16:41:31 +01:00
d81fbc64ef Handle update error
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
2021-01-09 16:40:57 +01:00
2 changed files with 7 additions and 8 deletions

View File

@ -12,12 +12,6 @@ builds:
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:

View File

@ -18,9 +18,14 @@ func main() {
if len(os.Args) < 2 {
fmt.Println("provide a command")
os.Exit(1)
} else if os.Args[1] == "upgrade" {
} else if os.Args[1] == "upgrade" || os.Args[1] == "up" {
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)