Toolchain: Use check_sha256() in BuildQemu.sh

This commit is contained in:
Nico Weber 2024-06-28 10:52:05 +02:00 committed by Daniel Bertalan
parent c1c00f9104
commit 311af9ad05

View file

@ -31,7 +31,7 @@ pushd "$DIR/Tarballs"
echo "Skipped downloading ${QEMU_ARCHIVE}"
fi
if ! sha256sum --status -c <(echo "${QEMU_ARCHIVE_SHA256SUM}" "${QEMU_ARCHIVE}"); then
if ! check_sha256 "${QEMU_ARCHIVE}" "${QEMU_ARCHIVE_SHA256SUM}"; then
echo "qemu sha256 sum mismatching, please run script again."
rm -f "${QEMU_ARCHIVE}"
exit 1