show SH256 hash

This commit is contained in:
openoms
2019-07-31 11:51:47 +01:00
parent 28ca0604fb
commit 23f97a2296

View File

@@ -52,6 +52,7 @@ if [ ${isX86_32} -eq 1 ] ; then
fi fi
echo "" echo ""
echo "*** LND v${lndVersion} for ${lndOSversion} ***" echo "*** LND v${lndVersion} for ${lndOSversion} ***"
echo "SHA256 hash: $lndSHA256"
echo "" echo ""
# get LND binary # get LND binary
@@ -83,7 +84,7 @@ sleep 3
verifyResult=$(gpg --verify manifest-v${lndVersion}.txt.sig 2>&1) verifyResult=$(gpg --verify manifest-v${lndVersion}.txt.sig 2>&1)
goodSignature=$(echo ${verifyResult} | grep 'Good signature' -c) goodSignature=$(echo ${verifyResult} | grep 'Good signature' -c)
echo "goodSignature(${goodSignature})" echo "goodSignature(${goodSignature})"
correctKey=$(echo ${verifyResult} | tr -d " \t\n\r" | grep "${olaoluwaPGP}" -c) correctKey=$(echo ${verifyResult} | tr -d " \t\n\r" | grep "${GPGcheck}" -c)
echo "correctKey(${correctKey})" echo "correctKey(${correctKey})"
if [ ${correctKey} -lt 1 ] || [ ${goodSignature} -lt 1 ]; then if [ ${correctKey} -lt 1 ] || [ ${goodSignature} -lt 1 ]; then
echo "" echo ""