|
|
|
@ -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 |
|
|
|
|