fix dirty check

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-15 23:01:43 -06:00
parent 19a48de5da
commit a095ab6a9f
1 changed files with 3 additions and 4 deletions

View File

@ -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()