mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
[contrib] Update versionprefix to "bitcoin-core" in verify.sh
This commit is contained in:
parent
6876a78b86
commit
141c44ed65
@ -17,15 +17,15 @@ function clean_up {
|
|||||||
WORKINGDIR="/tmp/bitcoin"
|
WORKINGDIR="/tmp/bitcoin"
|
||||||
TMPFILE="hashes.tmp"
|
TMPFILE="hashes.tmp"
|
||||||
|
|
||||||
#this URL is used if a version number is not specified as an argument to the script
|
|
||||||
SIGNATUREFILE="https://bitcoin.org/bin/0.9.2.1/SHA256SUMS.asc"
|
|
||||||
|
|
||||||
SIGNATUREFILENAME="SHA256SUMS.asc"
|
SIGNATUREFILENAME="SHA256SUMS.asc"
|
||||||
RCSUBDIR="test/"
|
RCSUBDIR="test/"
|
||||||
BASEDIR="https://bitcoin.org/bin/"
|
BASEDIR="https://bitcoin.org/bin/"
|
||||||
VERSIONPREFIX="bitcoin-"
|
VERSIONPREFIX="bitcoin-core-"
|
||||||
RCVERSIONSTRING="rc"
|
RCVERSIONSTRING="rc"
|
||||||
|
|
||||||
|
#this URL is used if a version number is not specified as an argument to the script
|
||||||
|
SIGNATUREFILE="$BASEDIR""$VERSIONPREFIX""0.10.4/""$RCSUBDIR""$SIGNATUREFILENAME"
|
||||||
|
|
||||||
if [ ! -d "$WORKINGDIR" ]; then
|
if [ ! -d "$WORKINGDIR" ]; then
|
||||||
mkdir "$WORKINGDIR"
|
mkdir "$WORKINGDIR"
|
||||||
fi
|
fi
|
||||||
@ -62,7 +62,7 @@ WGETOUT=$(wget -N "$BASEDIR$SIGNATUREFILENAME" 2>&1)
|
|||||||
#and then see if wget completed successfully
|
#and then see if wget completed successfully
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Error: couldn't fetch signature file. Have you specified the version number in the following format?"
|
echo "Error: couldn't fetch signature file. Have you specified the version number in the following format?"
|
||||||
echo "[bitcoin-]<version>-[rc[0-9]] (example: bitcoin-0.9.2-rc1)"
|
echo "[$VERSIONPREFIX]<version>-[$RCVERSIONSTRING[0-9]] (example: "$VERSIONPREFIX"0.10.4-"$RCVERSIONSTRING"1)"
|
||||||
echo "wget output:"
|
echo "wget output:"
|
||||||
echo "$WGETOUT"|sed 's/^/\t/g'
|
echo "$WGETOUT"|sed 's/^/\t/g'
|
||||||
exit 2
|
exit 2
|
||||||
|
Loading…
Reference in New Issue
Block a user