clean up debug
parent
5ff5942b4f
commit
59a4e22ee8
2
lib.go
2
lib.go
|
@ -281,7 +281,9 @@ func Exec(str string, opts ...*Opts) ([]*exec.Cmd, error) {
|
|||
if err != nil {
|
||||
fqncmd = filepath.Join(cmdwd, l.Tokens[0])
|
||||
}
|
||||
if opt.Debug {
|
||||
log.Printf("Will call CMD: %s", fqncmd)
|
||||
}
|
||||
cmd := exec.Command(fqncmd, l.Tokens[1:]...)
|
||||
cmd.Stdout = log.Writer()
|
||||
cmd.Stderr = log.Writer()
|
||||
|
|
Loading…
Reference in New Issue