From 501b82167dc7e4304b2b72692b43fef4d2733007 Mon Sep 17 00:00:00 2001 From: liuhaoming Date: Mon, 25 Mar 2024 16:29:55 +0800 Subject: [PATCH] fix: fix a bug for terraform installation --- pkg/engine/runtime/terraform/install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/engine/runtime/terraform/install.go b/pkg/engine/runtime/terraform/install.go index 76a34075..ff20581a 100644 --- a/pkg/engine/runtime/terraform/install.go +++ b/pkg/engine/runtime/terraform/install.go @@ -117,7 +117,7 @@ func setTerraformExecPathEnv(execPath string) error { pathSeparator = ":" } - newPath := execPath + pathSeparator + currentPath + newPath := filepath.Dir(execPath) + pathSeparator + currentPath return os.Setenv("PATH", newPath) }