Skip to content

Commit 46cfc20

Browse files
committed
Closes issues #16
1 parent 7be5bd9 commit 46cfc20

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

main.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ const (
1919

2020
func main() {
2121
args := os.Args[1:]
22-
if args[0] == "update" {
23-
if err := selfupdate.Update(VERSION); err != nil {
24-
fmt.Printf("Update failed: %s\n", err)
25-
}
26-
27-
return
28-
}
2922

3023
manager := manager.New()
3124

@@ -132,6 +125,14 @@ func Argumented(param []string, man manager.Manager) {
132125
Profile(man)
133126
return
134127
}
128+
129+
if param[0] == "update" {
130+
if err := selfupdate.Update(VERSION); err != nil {
131+
fmt.Printf("Update failed: %s\n", err)
132+
}
133+
134+
return
135+
}
135136
}
136137

137138
func Walk(man manager.Manager) {

0 commit comments

Comments
 (0)