Use env variables only for exec process in KRM toolbox
Small improvement that allows env variables to be used only for exec process in the KRM toolbox. Change-Id: I93436813be883241996ab46154d78452804a8665
This commit is contained in:
parent
ea534c379f
commit
532627deed
@ -92,12 +92,13 @@ func (c *ScriptRunner) Run() error {
|
||||
|
||||
c.ResourceList.Items = nil
|
||||
|
||||
os.Setenv(EnvRenderedBundlePath, bundlePath)
|
||||
|
||||
clicmd := exec.Command(scriptPath)
|
||||
clicmd.Stdout = c.OutStream
|
||||
clicmd.Stderr = c.ErrStream
|
||||
|
||||
clicmd.Env = os.Environ()
|
||||
clicmd.Env = append(clicmd.Env, fmt.Sprintf("%s=%s", EnvRenderedBundlePath, bundlePath))
|
||||
|
||||
err = clicmd.Start()
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user