Skip to content

Commit

Permalink
Merge pull request #340 from cbgbt/i-do-declare
Browse files Browse the repository at this point in the history
imghelper: hoist AWS vars into global environment
  • Loading branch information
cbgbt authored Jul 31, 2024
2 parents e2a9fa6 + 299f5b3 commit 8f074da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twoliter/embedded/imghelper
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ sbsetup_aws_profile() {
val="${var,,}"
val="${HOME}/.aws/${val//_/-}.env"
[[ -s "${val}" ]] || continue
declare -x "${var}=$(cat "${val}")"
declare -g -x "${var}=$(cat "${val}")"
done
# Verify that AWS credentials are functional.
aws sts get-caller-identity
Expand Down

0 comments on commit 8f074da

Please sign in to comment.