Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
always add
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Dec 22, 2023
1 parent 22c915f commit 5899fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/global/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func InstallPlugins() error {
}

func NeedsPulumi() bool {
os.Setenv("PATH", os.Getenv("PATH")+":~/.pulumi/bin")
_, err := exec.LookPath("pulumi")
if err != nil {
return true
Expand All @@ -58,6 +59,5 @@ func InstallPulumi() error {

cmd := `curl -fsSL https://get.pulumi.com | sh`
_, err := exec.Command("bash", "-c", cmd).CombinedOutput()
os.Setenv("PATH", os.Getenv("PATH")+":~/.pulumi/bin")
return err
}

0 comments on commit 5899fb9

Please sign in to comment.