Merge branch 's3' of github.com:harmony-one/harmony into check_md5sum_after_download

pull/1481/head
Eugene Kim 5 years ago
commit ed61eb5618
  1. 4
      scripts/node.sh

@ -246,7 +246,7 @@ any_new_binaries() {
${do_not_download} && return 0
outdir="${1:-.}"
mkdir -p "${outdir}"
curl http://${BUCKET}.s3.amazonaws.com/${FOLDER}md5sum.txt -o "${outdir}/md5sum.txt.new" || return $?
curl -sSf http://${BUCKET}.s3.amazonaws.com/${FOLDER}md5sum.txt -o "${outdir}/md5sum.txt.new" || return $?
if diff $outdir/md5sum.txt.new md5sum.txt
then
rm "${outdir}/md5sum.txt.new"
@ -298,7 +298,7 @@ download_binaries() {
outdir="${1:-.}"
mkdir -p "${outdir}"
for bin in "${BIN[@]}"; do
curl http://${BUCKET}.s3.amazonaws.com/${FOLDER}${bin} -o "${outdir}/${bin}" || return $?
curl -sSf http://${BUCKET}.s3.amazonaws.com/${FOLDER}${bin} -o "${outdir}/${bin}" || return $?
verify_checksum "${outdir}" "${bin}" md5sum.txt || return $?
msg "downloaded ${bin}"
done

Loading…
Cancel
Save