Skip to content

Commit

Permalink
Closes issues #16
Browse files Browse the repository at this point in the history
  • Loading branch information
umutphp committed Dec 2, 2020
1 parent 7be5bd9 commit 46cfc20
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ const (

func main() {
args := os.Args[1:]
if args[0] == "update" {
if err := selfupdate.Update(VERSION); err != nil {
fmt.Printf("Update failed: %s\n", err)
}

return
}

manager := manager.New()

Expand Down Expand Up @@ -132,6 +125,14 @@ func Argumented(param []string, man manager.Manager) {
Profile(man)
return
}

if param[0] == "update" {
if err := selfupdate.Update(VERSION); err != nil {
fmt.Printf("Update failed: %s\n", err)
}

return
}
}

func Walk(man manager.Manager) {
Expand Down

0 comments on commit 46cfc20

Please sign in to comment.