Skip to content

Commit

Permalink
fix: terragrunt binary name
Browse files Browse the repository at this point in the history
  • Loading branch information
kvendingoldo committed Jun 13, 2024
1 parent 5fff5bd commit 708260e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion versionmanager/retriever/terragrunt/terragruntretriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ func (r TerragruntRetriever) InstallRelease(versionStr string, targetPath string
return err
}

return os.WriteFile(filepath.Join(targetPath, fileName), data, 0755)
terragruntBinaryName := config.TerragruntName
if runtime.GOOS == "windows" {
terragruntBinaryName = terragruntBinaryName + ".exe"
}

return os.WriteFile(filepath.Join(targetPath, terragruntBinaryName), data, 0755)
}

func (r TerragruntRetriever) ListReleases() ([]string, error) {
Expand Down

0 comments on commit 708260e

Please sign in to comment.