Skip to content

Commit d881421

Browse files
committed
Extend debugging when comparing SHA-256 hashes
1 parent 48914aa commit d881421

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/stack_size.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,14 @@ jobs:
5454
sha256sum $bin
5555
done
5656
57+
sha256() {
58+
sha256sum "$1" | cut -d' ' -f1
59+
}
60+
CHELF=$(sha256 monerod-chelf)
5761
find . -iname "monerod-*" | while read -r bin; do
58-
if [ ! $(sha256sum monerod-chelf | cut -d' ' -f1) = $(sha256sum $bin | cut -d' ' -f1) ]; then
62+
BIN=$(sha256 "$bin")
63+
if [ ! "$CHELF" = "$BIN" ]; then
64+
echo "Different artifact between monerod-chelf ($CHELF) and $bin ($BIN)"
5965
exit 1
6066
fi
6167
done

0 commit comments

Comments
 (0)