ansible: Install compilers on sles nodes
[lttng-ci.git] / lava / upload_artifact.sh
index 333593bdca2b2c18ec218b07e3b56db667ff2fe0..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 -X PUT -T "${file}" \
+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.022394 seconds and 4 git commands to generate.