Skip to content

Commit ad1b3c3

Browse files
committed
Use the parsed positional parameters
1 parent 0c4bfde commit ad1b3c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git-credential-s3-secrets

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ s3_download() {
9595
aws_s3_args+=("--sse" "aws:kms")
9696
fi
9797

98-
if ! aws s3 cp "${aws_s3_args[@]}" "s3://$1/$2" - ; then
98+
local s3_uri="s3://${bucket}/${key}"
99+
if ! aws s3 cp "${aws_s3_args[@]}" "${s3_uri}" - ; then
99100
echo "Failed to download s3://$bucket/$key" >&2
100101
exit 1
101102
fi

0 commit comments

Comments
 (0)