Fix shellcheck warning
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 15 May 2019 21:17:06 +0000 (17:17 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 15 May 2019 21:17:06 +0000 (17:17 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
lava/upload_artifact.sh

index 7b699c106bc143c8e8d57298de180dfaf7ed2f3b..feada7997c6e8d91b712b57ee75b979c68869265 100755 (executable)
@@ -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}"
This page took 0.024401 seconds and 4 git commands to generate.