diff --git a/pkg/formula/runner.go b/pkg/formula/runner.go index 8f727cf96..a3281536b 100644 --- a/pkg/formula/runner.go +++ b/pkg/formula/runner.go @@ -19,8 +19,8 @@ import ( "github.com/ZupIT/ritchie-cli/pkg/env" "github.com/ZupIT/ritchie-cli/pkg/file/fileutil" "github.com/ZupIT/ritchie-cli/pkg/prompt" - "github.com/ZupIT/ritchie-cli/pkg/stdin" "github.com/ZupIT/ritchie-cli/pkg/session" + "github.com/ZupIT/ritchie-cli/pkg/stdin" ) const ( @@ -122,8 +122,9 @@ func (d DefaultRunner) Run(def Definition, inputType api.TermInputType) error { return err } bFilePath = def.BinFilePath(tBDir, bName) - cmd := exec.Command(bFilePath) + + cmd.Env = os.Environ() cmd.Stdin = os.Stdin cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr