Fix some issues found by shellcheck
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user