21
0
Fork 0
This commit is contained in:
Mike Schwörer 2023-01-29 22:07:28 +01:00
parent b7c5756f11
commit 48dd30fb94
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ type CommandResult struct {
func run(opt CommandRunner) (CommandResult, error) {
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()
if err != nil {