Skip to content

Commit

Permalink
correct environment variable name
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Kim <[email protected]>
  • Loading branch information
Oats87 committed Mar 17, 2021
1 parent ac1c4ed commit cb2edd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/applyinator/applyinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (a *Applyinator) execute(ctx context.Context, directory string, instruction
cmd := exec.CommandContext(ctx, instruction.Command, instruction.Args...)
logrus.Infof("Running command: %s %v", instruction.Command, instruction.Args)
cmd.Env = append(os.Environ(), instruction.Env...)
cmd.Env = append(os.Environ(), fmt.Sprintf("CATTLE_TMP_WORKDIR=%s", directory))
cmd.Env = append(os.Environ(), fmt.Sprintf("CATTLE_AGENT_EXECUTION_PWD=%s", directory))
cmd.Env = append(cmd.Env, "PATH="+os.Getenv("PATH")+":"+directory)

stdout, err := cmd.StdoutPipe()
Expand Down

0 comments on commit cb2edd9

Please sign in to comment.