projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lava: pip21 drop support for python 3.5
[lttng-ci.git]
/
lava
/
upload_artifact.sh
diff --git
a/lava/upload_artifact.sh
b/lava/upload_artifact.sh
index 333593bdca2b2c18ec218b07e3b56db667ff2fe0..feada7997c6e8d91b712b57ee75b979c68869265 100755
(executable)
--- 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"
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="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}" \
-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.02347 seconds
and
4
git commands to generate.