hotpocket.sh: fix incorrect variable usage in checkSignature

This commit is contained in:
Jon 2022-02-20 15:09:18 +00:00
parent 0f3b5a6bac
commit 1830f8dc52

View File

@ -209,7 +209,7 @@ checkSignature () {
gpg --no-default-keyring --keyring "$KEYRING_FILE" --verify "$wd/content.json.sig"
code="$?"
if [ "$code" != "0" ]; then
echo "checkSignature: Exception when verifying policy signature. Exit code: $?" 1>&2
echo "checkSignature: Exception when verifying policy signature. Exit code: $code" 1>&2
rm "$wd/content.json.sig" "$wd/content.json"
rmdir "$wd"
return 4