Skip to content

Commit

Permalink
Adding correct path for the .terraformrc file on macOS and Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
tonedefdev committed Oct 4, 2022
1 parent 40875cb commit df489c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ terraform/.terraform.tfstate.lock.info
terraform/terraform.tfstate
terraform/terraform.tfstate.backup
terracreds
terracreds.json
terracreds.json
config.yaml
2 changes: 1 addition & 1 deletion pkg/helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func GenerateTerraCreds(c *cli.Context, version string, confirm string) error {

if runtime.GOOS == "darwin" || runtime.GOOS == "linux" {
userProfile := os.Getenv("HOME")
cliConfig = filepath.Join(userProfile, ".terraform.d", ".terraformrc")
cliConfig = filepath.Join(userProfile, ".terraformrc")
tfPlugins = filepath.Join(userProfile, ".terraform.d", "plugins")
binary = filepath.Join(tfPlugins, "terraform-credentials-terracreds")
}
Expand Down

0 comments on commit df489c0

Please sign in to comment.