trek10inc / awsume

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

return: can only `return' from a function or sourced script #99

Closed jthomerson closed 4 years ago

jthomerson commented 4 years ago

Every time I run awsume -u I get the error shown below.

jrthomerson@mine ~
$ awsume -u
/usr/local/bin/awsume: line 71: return: can only `return' from a function or sourced script
jthomerson commented 4 years ago

🤦 never mind ... I thought my alias was set up, but it wasn't. It's weird - I did pip install awsume and no alias was installed in ~/.bash_profile or ~/.bashrc

mbarneyjr commented 4 years ago

Hey, glad it was figured out! Would you be willing to submit a PR to include this in the troubleshooting section of the docs, in case anyone else runs into similar issues and stumbles on the docs here