Browse Source

get-pup: Verify with openssl instead of sha256sum

Use openssl to verify download because sha256sum does not exist on
macOS.
pull/145/head
Ryan Schmidt 3 years ago committed by Adrian Perez
parent
commit
698e7ce4b9
  1. 2
      t/get-pup

2
t/get-pup

@ -66,7 +66,7 @@ done <<< "${SHASUMS}"
wget -cO "${TDIR}/${ZIPFILE}" "${BASEURL}/${ZIPFILE}"
read -r GOT_SHA _ < <( sha256sum "${TDIR}/${ZIPFILE}" )
read -r _ GOT_SHA < <( openssl sha256 < "${TDIR}/${ZIPFILE}" )
if [[ ${EXPECT_SHA} = ${GOT_SHA} ]] ; then
echo "Checksum for ${ZIPFILE} verified :-)"
else

Loading…
Cancel
Save