fixed stream already open error
parent
214a77730b
commit
7f90265705
4
lib.go
4
lib.go
|
@ -396,8 +396,8 @@ func ExecStr(str string, opts ...*Opts) (string, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
cmd := exec.Command(str, l.Tokens[1:]...)
|
cmd := exec.Command(str, l.Tokens[1:]...)
|
||||||
cmd.Stdout = log.Writer()
|
// cmd.Stdout = log.Writer()
|
||||||
cmd.Stderr = log.Writer()
|
// cmd.Stderr = log.Writer()
|
||||||
cmd.Dir = cmdwd
|
cmd.Dir = cmdwd
|
||||||
opt.SetupProc(cmd)
|
opt.SetupProc(cmd)
|
||||||
ret = append(ret, cmd)
|
ret = append(ret, cmd)
|
||||||
|
|
Loading…
Reference in New Issue