Skip to content

Commit

Permalink
skip broken auto-update :'(
Browse files Browse the repository at this point in the history
  • Loading branch information
intrand committed Sep 9, 2022
1 parent 2408e12 commit c34082a
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,16 @@ func main() {
os.Exit(1)
}

// Handle updating to a new version
log.Print("Attempting update of " + cmdname + "...")
update_result, err := doSelfUpdate()
if err != nil {
log.Println("Couldn't update at this time. Please try again later. Exiting.")
os.Exit(1)
}
if update_result {
log.Println("Please run " + cmdname + " again.")
os.Exit(0)
}
// // Handle updating to a new version
// log.Print("Attempting update of " + cmdname + "...")
// update_result, err := doSelfUpdate()
// if err != nil {
// log.Fatalln("Couldn't update at this time. Please try again later. Exiting.")
// }
// if update_result {
// log.Println("Please run " + cmdname + " again.")
// os.Exit(0)
// }

// parse args
args := kingpin.MustParse(app.Parse(os.Args[1:]))
Expand Down

0 comments on commit c34082a

Please sign in to comment.