We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a78748 commit 2d68e82Copy full SHA for 2d68e82
gotip/main.go
@@ -37,7 +37,7 @@ func main() {
37
log.Fatalf("gotip: %v", err)
38
}
39
40
- if os.Args[1] == "download" {
+ if len(os.Args) > 1 && os.Args[1] == "download" {
41
switch len(os.Args) {
42
case 2:
43
if err := installTip(root, ""); err != nil {
0 commit comments