From ec24a2653abf61130e419448ee9edca51e48699b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Guimar=C3=A3es?= Date: Tue, 2 Jun 2020 10:39:52 -0300 Subject: [PATCH] env runner formula --- pkg/formula/runner.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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