Browse Source

optional continue on PGP check

dev
Christian Rotzoll 6 years ago
parent
commit
becad8e301
  1. 12
      build_sdcard.sh

12
build_sdcard.sh

@ -243,13 +243,12 @@ then
echo "!!! FAIL !!! Download laanwj-releases.asc not success." echo "!!! FAIL !!! Download laanwj-releases.asc not success."
exit 1 exit 1
fi fi
gpg ./laanwj-releases.asc
fingerprint=$(gpg ./laanwj-releases.asc 2>/dev/null | grep "${laanwjPGP}" -c) fingerprint=$(gpg ./laanwj-releases.asc 2>/dev/null | grep "${laanwjPGP}" -c)
if [ ${fingerprint} -lt 1 ]; then if [ ${fingerprint} -lt 1 ]; then
echo "" echo ""
echo "!!! BUILD WARNING --> Bitcoin PGP author not as expected" echo "!!! BUILD WARNING --> Bitcoin PGP author not as expected"
echo "Should be laanwjPGP: ${laanwjPGP}" echo "Should contain 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" echo "PRESS ENTER to TAKE THE RISK if you think all is OK"
read key read key
fi fi
@ -336,11 +335,14 @@ if [ "${binaryChecksum}" != "${lndSHA256}" ]; then
fi fi
# check gpg finger print # check gpg finger print
gpg ./pgp_keys.asc
fingerprint=$(gpg ./pgp_keys.asc 2>/dev/null | grep "${olaoluwaPGP}" -c) fingerprint=$(gpg ./pgp_keys.asc 2>/dev/null | grep "${olaoluwaPGP}" -c)
if [ ${fingerprint} -lt 1 ]; then if [ ${fingerprint} -lt 1 ]; then
echo "" echo ""
echo "!!! BUILD FAILED --> LND download author PGP not OK" echo "!!! BUILD WARNING --> Bitcoin PGP author not as expected"
exit 1 echo "Should contain olaoluwaPGP: ${olaoluwaPGP}"
echo "PRESS ENTER to TAKE THE RISK if you think all is OK"
read key
fi fi
gpg --import ./pgp_keys.asc gpg --import ./pgp_keys.asc
sleep 3 sleep 3

Loading…
Cancel
Save