Fix some issues found by shellcheck

This commit is contained in:
2025-11-23 20:02:06 -08:00
parent 04fdbecc1a
commit a8ac4c2d06
2 changed files with 9 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ FILE="{filename}"
EXPECTED_HASH="{filehash}"
if [ "$(sha256sum "$FILE" | awk '{print $1}')" = "$EXPECTED_HASH" ]; then
printf "File %%s validated with message:\\n%%s" "$FILE" "$MESSAGE"
printf "File %s validated with message:\\n%s" "$FILE" "$MESSAGE"
exit 0
else
echo "File $FILE is not valid"