From e6c331575a5b79bff53b8b67678049677dadcc32 Mon Sep 17 00:00:00 2001 From: Nathan Christopher McRae Date: Mon, 24 Nov 2025 12:07:34 -0800 Subject: [PATCH] Make target file relative to script file Since we expect them to be in the same directory --- verify-script.template | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/verify-script.template b/verify-script.template index 522f6e9..e2c7a42 100644 --- a/verify-script.template +++ b/verify-script.template @@ -17,9 +17,10 @@ MESSAGE="{message}" FILE="{filename}" +FILE_PATH="$(dirname "$0")/$FILE" EXPECTED_HASH="{filehash}" -if [ "$(sha256sum "$FILE" | awk '{print $1}')" = "$EXPECTED_HASH" ]; then +if [ "$(sha256sum "$FILE_PATH" | awk '{print $1}')" = "$EXPECTED_HASH" ]; then printf "File %s validated with message:\\n%s" "$FILE" "$MESSAGE" exit 0 else