Skip to content

Commit 182bec4

Browse files
committed
contrib: remove hardcoded version from verify.sh
Closes #7595 as by removing the hardcoded version number from `verify.sh`.
1 parent c907f4d commit 182bec4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

contrib/verifysfbinaries/verify.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ BASEDIR="https://bitcoin.org/bin/"
2323
VERSIONPREFIX="bitcoin-core-"
2424
RCVERSIONSTRING="rc"
2525

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-
2926
if [ ! -d "$WORKINGDIR" ]; then
3027
mkdir "$WORKINGDIR"
3128
fi
@@ -53,7 +50,8 @@ if [ -n "$1" ]; then
5350

5451
SIGNATUREFILE="$BASEDIR$SIGNATUREFILENAME"
5552
else
56-
BASEDIR="${SIGNATUREFILE%/*}/"
53+
echo "Error: need to specify a version on the command line"
54+
exit 2
5755
fi
5856

5957
#first we fetch the file containing the signature

0 commit comments

Comments
 (0)