Skip to content

Commit

Permalink
fix: fix a bug for terraform installation (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-hm19 committed Mar 25, 2024
1 parent c7a17ae commit dcdd8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/engine/runtime/terraform/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit dcdd8cb

Please sign in to comment.