mirror of https://github.com/k3s-io/k3s
Merge pull request #2321 from jimmydivvy/fix_linux_md5sum
Strip extra '-' from md5sum output when creating S3 bucketpull/6/head
commit
d71408f465
|
@ -162,7 +162,7 @@ function upload-server-tars() {
|
|||
if which md5 > /dev/null 2>&1; then
|
||||
project_hash=$(md5 -q -s "${USER} ${key}")
|
||||
else
|
||||
project_hash=$(echo -n "${USER} ${key}" | md5sum)
|
||||
project_hash=$(echo -n "${USER} ${key}" | md5sum | awk '{ print $1 }')
|
||||
fi
|
||||
local -r staging_bucket="kubernetes-staging-${project_hash}"
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ function upload-server-tars() {
|
|||
if which md5 > /dev/null 2>&1; then
|
||||
project_hash=$(md5 -q -s "$PROJECT")
|
||||
else
|
||||
project_hash=$(echo -n "$PROJECT" | md5sum)
|
||||
project_hash=$(echo -n "$PROJECT" | md5sum | awk '{ print $1 }')
|
||||
fi
|
||||
project_hash=${project_hash:0:5}
|
||||
|
||||
|
|
Loading…
Reference in New Issue