Skip to content

Commit

Permalink
expand any home paths in the AWS_SHARED_CREDENTIALS_FILE env var
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPalmer1 committed Oct 27, 2020
1 parent 34cac26 commit 673d9fa
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 673d9fa

Please sign in to comment.