Skip to content

Commit

Permalink
Merge pull request #52 from GESkunkworks/fix/aws-shared-creds-file-ex…
Browse files Browse the repository at this point in the history
…pansion

expand any home paths in the AWS_SHARED_CREDENTIALS_FILE env var
  • Loading branch information
Squwid authored Oct 28, 2020
2 parents 5d2a7bb + 673d9fa commit dfead57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/awsconfig/awsconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ func locateConfigFile() (string, error) {
filename := os.Getenv("AWS_SHARED_CREDENTIALS_FILE")

if filename != "" {
return filename, nil
name, err := homedir.Expand(filename)
return name, err
}

var name string
Expand Down

0 comments on commit dfead57

Please sign in to comment.