v0.0.70
This commit is contained in:
parent
b7c5756f11
commit
48dd30fb94
@ -16,7 +16,8 @@ type CommandResult struct {
|
|||||||
|
|
||||||
func run(opt CommandRunner) (CommandResult, error) {
|
func run(opt CommandRunner) (CommandResult, error) {
|
||||||
cmd := exec.Command(opt.program, opt.args...)
|
cmd := exec.Command(opt.program, opt.args...)
|
||||||
cmd.Env = append(cmd.Env, opt.env)
|
|
||||||
|
cmd.Env = append(cmd.Env, opt.env...)
|
||||||
|
|
||||||
stdoutPipe, err := cmd.StdoutPipe()
|
stdoutPipe, err := cmd.StdoutPipe()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user