add more debug for chantools PGP check

This commit is contained in:
rootzoll 2021-09-21 17:51:27 +02:00
parent 487d3ef760
commit 8b1811f1e2

View File

@ -102,7 +102,9 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
fi
gpg --import ./pgp_keys.asc
sleep 3
echo "# running: gpg --verify manifest-v${pinnedVersion}.txt.asc"
verifyResult=$(gpg --verify manifest-v${pinnedVersion}.txt.asc 2>&1)
echo "# verifyResult(${verifyResult})"
goodSignature=$(echo ${verifyResult} | grep 'Good signature' -c)
echo "# goodSignature(${goodSignature})"
correctKey=$(echo ${verifyResult} | tr -d " \t\n\r" | grep "${GPGcheck}" -c)