diff --git a/main.go b/main.go index d799834..8f8984a 100644 --- a/main.go +++ b/main.go @@ -163,12 +163,11 @@ func repoworld() { break } } - line := []string{"rm", "-rf", "go/src/"} - newCmds = append(newCmds, line) + newCmds = append(newCmds, []string{"rm", "-rf", "go/src/"}) + newCmds = append(newCmds, []string{"chmod", "700", "-R", "go/pkg/"}) newCmds = append(newCmds, []string{"rm", "-rf", "go/pkg/"}) if dirty { - line := []string{"can't do this with dirty repos"} - newCmds = append(newCmds, line) + newCmds = append(newCmds, []string{"can't do this with dirty repos"}) doit.Disable() } else { doit.Enable()