fixed stream already open error

master
Paulo Simão 2022-03-03 11:41:06 -03:00
parent 214a77730b
commit 7f90265705
1 changed files with 2 additions and 2 deletions

4
lib.go
View File

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