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