package main
import (
+ "fmt"
"io/ioutil"
"os"
"path/filepath"
}
var b builder
+ b.print = fmt.Print
packageFile := map[string]bool{}
if p.Name != "main" {
}
}
if cleanN || cleanX {
- b.showcmd(p.Dir, "rm %s", strings.Join(allRemove, " "))
+ b.showcmd(p.Dir, "rm -f %s", strings.Join(allRemove, " "))
}
toRemove := map[string]bool{}
if cleanI && p.target != "" {
if cleanN || cleanX {
- b.showcmd("", "rm %s", p.target)
+ b.showcmd("", "rm -f %s", p.target)
}
if !cleanN {
os.Remove(p.target)