Skip to content

Commit eac53ec

Browse files
committed
Merge pull request #7026
a6d5a65 [trivial] contrib: Fix `echo`s in verify.sh (MarcoFalke) 141c44e [contrib] Update versionprefix to "bitcoin-core" in verify.sh (MarcoFalke)
2 parents 87ee0e2 + a6d5a65 commit eac53ec

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

contrib/verifysfbinaries/verify.sh

Lines changed: 8 additions & 6 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
@@ -82,7 +82,7 @@ if [ $RET -ne 0 ]; then
8282
echo "Bad signature."
8383
elif [ $RET -eq 2 ]; then
8484
#or if a gpg error has occurred
85-
echo "gpg error. Do you have Gavin's code signing key installed?"
85+
echo "gpg error. Do you have the Bitcoin Core binary release signing key installed?"
8686
fi
8787

8888
echo "gpg output:"
@@ -116,4 +116,6 @@ fi
116116
#everything matches! clean up the mess
117117
clean_up $FILES $SIGNATUREFILENAME $TMPFILE
118118

119+
echo -e "Verified hashes of \n$FILES"
120+
119121
exit 0

0 commit comments

Comments
 (0)