Extend debugging when comparing SHA-256 hashes

This commit is contained in:
Luke Parker
2025-12-09 00:06:06 -05:00
parent 48914aad0a
commit d881421e7e

View File

@@ -54,8 +54,14 @@ jobs:
sha256sum $bin
done
sha256() {
sha256sum "$1" | cut -d' ' -f1
}
CHELF=$(sha256 monerod-chelf)
find . -iname "monerod-*" | while read -r bin; do
if [ ! $(sha256sum monerod-chelf | cut -d' ' -f1) = $(sha256sum $bin | cut -d' ' -f1) ]; then
BIN=$(sha256 "$bin")
if [ ! "$CHELF" = "$BIN" ]; then
echo "Different artifact between monerod-chelf ($CHELF) and $bin ($BIN)"
exit 1
fi
done