X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lava%2Fupload_artifact.sh;h=feada7997c6e8d91b712b57ee75b979c68869265;hb=fbeb28ab3fd24407e6256413d59ad2292723c150;hp=7b699c106bc143c8e8d57298de180dfaf7ed2f3b;hpb=2ab1e3c76ba86c3863bee015e48fe20117c9c4f8;p=lttng-ci.git 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}"