From 6d2a49605405fcdc3cba1966d86a2786e97a482f Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 8 Dec 2025 22:50:12 -0500 Subject: [PATCH] Prune output of `sha256sum` to the hash alone This causes the equality not to fail simply because the file names are different. --- .github/workflows/stack_size.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stack_size.yml b/.github/workflows/stack_size.yml index 7e2b1ded..066e0505 100644 --- a/.github/workflows/stack_size.yml +++ b/.github/workflows/stack_size.yml @@ -49,7 +49,7 @@ jobs: done find . -iname "monerod-*" | while read -r bin; do - if [ ! $(sha256sum monerod-chelf) = $(sha256sum $bin) ]; then + if [ ! $(sha256sum monerod-chelf | cut -d' ' -f1) = $(sha256sum $bin | cut -d' ' -f1) ]; then exit 1 fi done