Skip to content

Commit

Permalink
Merge pull request #168 from tofuutils/fix/tg-bin-name
Browse files Browse the repository at this point in the history
fix: terragrunt binary name
  • Loading branch information
kvendingoldo authored Jun 13, 2024
2 parents 5fff5bd + b0969cf commit 89d9adc
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 89d9adc

Please sign in to comment.