Skip to content

Commit f1a5d33

Browse files
committed
Hotfix environment append
Change-Id: Ic01485d3c67c03b59f00197ed24b7713c06eed3b
1 parent 0613cfe commit f1a5d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

localexec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (l LocalExecer) Start(ctx context.Context, c Command) (Process, error) {
7474
err error
7575
)
7676
process.cmd = exec.CommandContext(ctx, c.Command, c.Args...)
77-
process.cmd.Env = c.Env
77+
process.cmd.Env = append(os.Environ(), c.Env...)
7878
process.cmd.Dir = c.WorkingDir
7979

8080
if c.GID != 0 || c.UID != 0 {

0 commit comments

Comments
 (0)