trek10inc / awsume

A utility for easily assuming AWS IAM roles from the command line.
https://awsu.me
MIT License
497 stars 90 forks source link

bug fix: profile name that is prefix of another profile name no longer errors out #4

Closed azurelogic closed 7 years ago

azurelogic commented 7 years ago

When you have 2 profile names, e.g.: "trek10" and "trek10-something", and you have already awsume-d "trek10-something", the script errors out when looking through the ~/.aws/cli/cache directory upon awsume-ing "trek10" because it would find 2 files matching the pattern trek10*.json.