From dcdd8cb30719370858cf9b7dd4f5b9ef5c432b36 Mon Sep 17 00:00:00 2001 From: liu-hm19 Date: Mon, 25 Mar 2024 16:47:48 +0800 Subject: [PATCH] fix: fix a bug for terraform installation (#957) --- 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) }