optional continue in PGP autocheck #342

This commit is contained in:
Christian Rotzoll 2019-02-22 22:46:13 +01:00
parent 624f3b4dbd
commit cb7cd4f902

View file

@ -246,8 +246,12 @@ fi
fingerprint=$(gpg ./laanwj-releases.asc 2>/dev/null | grep "${laanwjPGP}" -c)
if [ ${fingerprint} -lt 1 ]; then
echo ""
echo "!!! BUILD FAILED --> Bitcoin download PGP author not OK"
exit 1
echo "!!! BUILD WARNING --> Bitcoin PGP author not as expected"
echo "Should be laanwjPGP: ${laanwjPGP}"
echo "This is the output of that check (gpg ./laanwj-releases.asc):"
gpg ./laanwj-releases.asc
echo "PRESS ENTER to TAKE THE RISK if you think all is OK"
read key
fi
gpg --import ./laanwj-releases.asc
sudo -u admin wget https://bitcoin.org/bin/bitcoin-core-${bitcoinVersion}/SHA256SUMS.asc