diff --git a/main.go b/main.go index 9413610..b8a4d67 100644 --- a/main.go +++ b/main.go @@ -118,7 +118,7 @@ func main() { installVersion(tgversion, &binPath) /* if terragrunt.hcl file found (IN ADDITION TO A TOML FILE) */ case lib.FileExists(TGHACLFile) && checkVersionDefinedHCL(&TGHACLFile) && len(args) == 0: - installTGHclFile(&TGHACLFile, binPath, proxyUrl) + installTGHclFile(&TGHACLFile, binPath, terragruntURL) /* if terragrunt Version environment variable is set (IN ADDITION TO A TOML FILE)*/ case checkTGEnvExist() && len(args) == 0 && version == "": tgversion := os.Getenv("TG_VERSION") @@ -158,7 +158,7 @@ func main() { installVersion(tgversion, custBinPath) /* if terragrunt.hcl file found */ case lib.FileExists(TGHACLFile) && checkVersionDefinedHCL(&TGHACLFile) && len(args) == 0: - installTGHclFile(&TGHACLFile, *custBinPath, proxyUrl) + installTGHclFile(&TGHACLFile, *custBinPath, terragruntURL) /* if terragrunt Version environment variable is set*/ case checkTGEnvExist() && len(args) == 0: tgversion := os.Getenv("TG_VERSION")