Skip to content

Commit

Permalink
Only use-profile if AWS configured (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman committed Sep 29, 2017
1 parent b02f00a commit 651cc5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aws-assumed-role
2 changes: 1 addition & 1 deletion rootfs/etc/profile.d/use-profile.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
if [ -n "${AWS_PROFILE}" ]; then
if [ -n "${AWS_PROFILE}" ] && [ -f "${AWS_CONFIG_FILE}" ] && [ -f "${AWS_SHARED_CREDENTIALS_FILE}" ]; then
use-profile
fi

0 comments on commit 651cc5a

Please sign in to comment.