Skip to content

Commit fab1f92

Browse files
author
MarcoFalke
committed
[contrib] verifybinaries: Adjust parsing to new rc path
1 parent 2468292 commit fab1f92

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

contrib/verifybinaries/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ Usage:
1010
```sh
1111
./verify.sh bitcoin-core-0.11.2
1212
./verify.sh bitcoin-core-0.12.0
13+
./verify.sh bitcoin-core-0.13.0-rc3
1314
```

contrib/verifybinaries/verify.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ function clean_up {
1414
done
1515
}
1616

17-
WORKINGDIR="/tmp/bitcoin"
17+
WORKINGDIR="/tmp/bitcoin_verify_binaries"
1818
TMPFILE="hashes.tmp"
1919

2020
SIGNATUREFILENAME="SHA256SUMS.asc"
21-
RCSUBDIR="test/"
21+
RCSUBDIR="test"
2222
BASEDIR="https://bitcoin.org/bin/"
2323
VERSIONPREFIX="bitcoin-core-"
2424
RCVERSIONSTRING="rc"
@@ -43,7 +43,7 @@ if [ -n "$1" ]; then
4343
# and simultaneously add RCSUBDIR to BASEDIR, where we will look for SIGNATUREFILENAME
4444
if [[ $VERSION == *"$RCVERSIONSTRING"* ]]; then
4545
BASEDIR="$BASEDIR${VERSION/%-$RCVERSIONSTRING*}/"
46-
BASEDIR="$BASEDIR$RCSUBDIR"
46+
BASEDIR="$BASEDIR$RCSUBDIR.$RCVERSIONSTRING${VERSION: -1}/"
4747
else
4848
BASEDIR="$BASEDIR$VERSION/"
4949
fi
@@ -93,7 +93,7 @@ fi
9393
FILES=$(awk '{print $2}' "$TMPFILE")
9494

9595
#and download these one by one
96-
for file in in $FILES
96+
for file in $FILES
9797
do
9898
wget --quiet -N "$BASEDIR$file"
9999
done

0 commit comments

Comments
 (0)