From e45b575af2e08f1f5fb3571c5784b45d75b9974c Mon Sep 17 00:00:00 2001 From: Nathan Christopher McRae Date: Sun, 23 Nov 2025 12:23:48 -0800 Subject: [PATCH] Move substitutions outside of printf expression On the advice of shellcheck --- verify-script.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verify-script.template b/verify-script.template index 23dd06e..7237914 100644 --- a/verify-script.template +++ b/verify-script.template @@ -5,7 +5,7 @@ FILE="{filename}" EXPECTED_HASH="{filehash}" if [ "$(sha256sum "$FILE" | awk '{print $1}')" = "$EXPECTED_HASH" ]; then - printf "File $FILE validated with message:\n$MESSAGE" + printf "File %%s validated with message:\\n%%s" "$FILE" "$MESSAGE" exit 0 else echo "File $FILE is not valid"