Skip to content

Commit 141c44e

Browse files
author
MarcoFalke
committed
[contrib] Update versionprefix to "bitcoin-core" in verify.sh
1 parent 6876a78 commit 141c44e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

contrib/verifysfbinaries/verify.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ function clean_up {
1717
WORKINGDIR="/tmp/bitcoin"
1818
TMPFILE="hashes.tmp"
1919

20-
#this URL is used if a version number is not specified as an argument to the script
21-
SIGNATUREFILE="https://bitcoin.org/bin/0.9.2.1/SHA256SUMS.asc"
22-
2320
SIGNATUREFILENAME="SHA256SUMS.asc"
2421
RCSUBDIR="test/"
2522
BASEDIR="https://bitcoin.org/bin/"
26-
VERSIONPREFIX="bitcoin-"
23+
VERSIONPREFIX="bitcoin-core-"
2724
RCVERSIONSTRING="rc"
2825

26+
#this URL is used if a version number is not specified as an argument to the script
27+
SIGNATUREFILE="$BASEDIR""$VERSIONPREFIX""0.10.4/""$RCSUBDIR""$SIGNATUREFILENAME"
28+
2929
if [ ! -d "$WORKINGDIR" ]; then
3030
mkdir "$WORKINGDIR"
3131
fi
@@ -62,7 +62,7 @@ WGETOUT=$(wget -N "$BASEDIR$SIGNATUREFILENAME" 2>&1)
6262
#and then see if wget completed successfully
6363
if [ $? -ne 0 ]; then
6464
echo "Error: couldn't fetch signature file. Have you specified the version number in the following format?"
65-
echo "[bitcoin-]<version>-[rc[0-9]] (example: bitcoin-0.9.2-rc1)"
65+
echo "[$VERSIONPREFIX]<version>-[$RCVERSIONSTRING[0-9]] (example: "$VERSIONPREFIX"0.10.4-"$RCVERSIONSTRING"1)"
6666
echo "wget output:"
6767
echo "$WGETOUT"|sed 's/^/\t/g'
6868
exit 2

0 commit comments

Comments
 (0)