Skip to content

Commit

Permalink
pass environments using bash builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
andrestc committed Mar 29, 2018
1 parent c3f4c88 commit 4cb94c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/docker/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (d *Executor) ExecuteAsUser(user string, opts exec.ExecuteOptions) error {
cmd = append(cmd[:2], fmt.Sprintf("cd %s && %s", opts.Dir, strings.Join(cmd[2:], " ")))
}
if len(opts.Envs) > 0 {
cmd = append(cmd[:2], fmt.Sprintf("env %s && %s", strings.Join(opts.Envs, " "), strings.Join(cmd[2:], " ")))
cmd = append(cmd[:2], fmt.Sprintf("%s %s", strings.Join(opts.Envs, " "), strings.Join(cmd[2:], " ")))
}
e, err := d.Client.api.CreateExec(docker.CreateExecOptions{
Container: d.ContainerID,
Expand Down

0 comments on commit 4cb94c2

Please sign in to comment.