Skip to content

Commit

Permalink
Add check aws_profile file
Browse files Browse the repository at this point in the history
  • Loading branch information
Laica-Lunasys committed Jul 28, 2021
1 parent 26df724 commit aace841
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Add your `.bashrc` or `.zshrc` and follow "REPLACE ME" and "OPTIONAL"
```bash
AWSCTX="$HOME/awsctx" # <-- REPLACE ME: path to awsctx
sync-aws-profile() {
export AWS_PROFILE=$(cat $AWSCTX/aws_profile)
if [ -e "$AWSCTX/aws_profile" ]; then
export AWS_PROFILE=$(cat $AWSCTX/aws_profile)
fi
}
awsctx() {
# ---
Expand Down

0 comments on commit aace841

Please sign in to comment.