From 7c11b166b3f7c03e8581ffb3d5ab4c667f24a4a0 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Wed, 15 May 2019 17:17:06 -0400 Subject: [PATCH] Fix shellcheck warning Signed-off-by: Jonathan Rajotte --- lava/upload_artifact.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lava/upload_artifact.sh b/lava/upload_artifact.sh index 7b699c1..feada79 100755 --- a/lava/upload_artifact.sh +++ b/lava/upload_artifact.sh @@ -25,13 +25,13 @@ s3_s='echo123456' resource="/${bucket}/${path}" content_type="application/octet-stream" -date=`date -R` +date=$(date -R) _signature="PUT\n\n${content_type}\n${date}\n${resource}" -signature=`echo -en ${_signature} | openssl sha1 -hmac ${s3_s} -binary | base64` +signature=$(echo -en "$_signature" | openssl sha1 -hmac "$s3_s" -binary | base64) curl -v -k -X PUT -T "${file}" \ -H "Host: $host" \ -H "Date: ${date}" \ -H "Content-Type: ${content_type}" \ -H "Authorization: AWS ${s3_k}:${signature}" \ - https://$host${resource} + https://"${host}${resource}" -- 2.34.1