Skip to content

Commit 5154931

Browse files
authored
Merge pull request #49 from buildkite/keithduncan/shellcheck
Quote the IDMS address
2 parents e844384 + 3f01b47 commit 5154931

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-credential-s3-secrets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ s3_bucket_region() {
6060
then
6161
# This plug-in may not be executing in an AWS VPC or have access to the IDMS
6262
# Fail fast with the --connect-timeout flag
63-
local token=$(curl -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 60" --fail --silent --show-error --location --connect-timeout 5 http://169.254.169.254/latest/api/token)
63+
local token=$(curl -X PUT -H "X-aws-ec2-metadata-token-ttl-seconds: 60" --fail --silent --show-error --location --connect-timeout 5 "http://169.254.169.254/latest/api/token")
6464
if [ -n "${token}" ]
6565
then
66-
guess_region=$(curl -H "X-aws-ec2-metadata-token: $token" --fail --silent --show-error --location http://169.254.169.254/latest/meta-data/placement/region)
66+
guess_region=$(curl -H "X-aws-ec2-metadata-token: $token" --fail --silent --show-error --location "http://169.254.169.254/latest/meta-data/placement/region")
6767
fi
6868
fi
6969
if [ -z "${guess_region}" ]

0 commit comments

Comments
 (0)