[node.sh] compare the right md5sum.txt file

Signed-off-by: Leo Chen <leo@harmony.one>
pull/3113/head
Leo Chen 5 years ago
parent 900f264ba7
commit 666311cacb
  1. 2
      scripts/node.sh

@ -530,7 +530,7 @@ any_new_binaries() {
fi
fi
curl -sSf http://${BUCKET}.s3.amazonaws.com/${FOLDER}/md5sum.txt -o "${outdir}/md5sum.txt.new" || return $?
if diff $outdir/md5sum.txt.new md5sum.txt
if diff "${outdir}/md5sum.txt.new" "${outdir}/md5sum.txt"
then
rm "${outdir}/md5sum.txt.new"
else

Loading…
Cancel
Save