mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
contrib: Dashify verifybin (#4288)
This commit is contained in:
parent
dfc17e235b
commit
18fae161d1
@ -24,10 +24,10 @@ TMPFILE="hashes.tmp"
|
||||
|
||||
SIGNATUREFILENAME="SHA256SUMS.asc"
|
||||
RCSUBDIR="test"
|
||||
HOST1="https://bitcoincore.org"
|
||||
HOST2="https://bitcoin.org"
|
||||
BASEDIR="/bin/"
|
||||
VERSIONPREFIX="bitcoin-core-"
|
||||
HOST1="https://github.com/dashpay/dash/releases/download/v"
|
||||
HOST2="https://pasta.keybase.pub/Dash-Core-Releases/"
|
||||
BASEDIR=""
|
||||
VERSIONPREFIX=""
|
||||
RCVERSIONSTRING="rc"
|
||||
|
||||
if [ ! -d "$WORKINGDIR" ]; then
|
||||
@ -96,7 +96,7 @@ fi
|
||||
|
||||
WGETOUT=$(wget -N -O "$SIGNATUREFILENAME.2" "$HOST2$BASEDIR$SIGNATUREFILENAME" 2>&1)
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "bitcoin.org failed to provide signature file, but bitcoincore.org did?"
|
||||
echo "pasta.keybase.pub failed to provide signature file, but github.com did?"
|
||||
echo "wget output:"
|
||||
echo "$WGETOUT"|sed 's/^/\t/g'
|
||||
clean_up $SIGNATUREFILENAME
|
||||
@ -105,7 +105,7 @@ fi
|
||||
|
||||
SIGFILEDIFFS="$(diff $SIGNATUREFILENAME $SIGNATUREFILENAME.2)"
|
||||
if [ "$SIGFILEDIFFS" != "" ]; then
|
||||
echo "bitcoin.org and bitcoincore.org signature files were not equal?"
|
||||
echo "pasta.keybase.pub and github.com signature files were not equal?"
|
||||
clean_up $SIGNATUREFILENAME $SIGNATUREFILENAME.2
|
||||
exit 4
|
||||
fi
|
||||
@ -124,7 +124,7 @@ if [ $RET -ne 0 ]; then
|
||||
echo "Bad signature."
|
||||
elif [ $RET -eq 2 ]; then
|
||||
#or if a gpg error has occurred
|
||||
echo "gpg error. Do you have the Bitcoin Core binary release signing key installed?"
|
||||
echo "gpg error. Do you have the Dash Core binary release signing key installed?"
|
||||
fi
|
||||
|
||||
echo "gpg output:"
|
||||
|
Loading…
Reference in New Issue
Block a user