Skip to content

Commit

Permalink
Merge pull request #19 from juergenhoetzel/environment-override-fix
Browse files Browse the repository at this point in the history
Override OS environment variables instead of vice versa
  • Loading branch information
scottwinkler authored Nov 11, 2019
2 parents 2655144 + 159cba6 commit 2db1ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/utility.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func runCommand(command string, state *State, environment []string, workingDirec
input, _ := json.Marshal(state.Output)
stdin := bytes.NewReader(input)
cmd.Stdin = stdin
environment = append(environment, os.Environ()...)
environment = append(os.Environ(), environment...)
cmd.Env = environment
stdout, _ := circbuf.NewBuffer(maxBufSize)
stderr, _ := circbuf.NewBuffer(maxBufSize)
Expand Down

0 comments on commit 2db1ed3

Please sign in to comment.