We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b1460d commit c7ca630Copy full SHA for c7ca630
contrib/devtools/previous_release.sh
@@ -132,7 +132,12 @@ pushd "$TARGET" || exit 1
132
echo "Using cached $tag"
133
else
134
mkdir "$tag"
135
- URL="https://bitcoin.org/bin/bitcoin-core-${tag:1}/bitcoin-${tag:1}-$PLATFORM.tar.gz"
+ if [[ "$tag" =~ v(.*)(rc[0-9]+)$ ]]; then
136
+ BIN_PATH="bin/bitcoin-core-${BASH_REMATCH[1]}/test.${BASH_REMATCH[2]}"
137
+ else
138
+ BIN_PATH="bin/bitcoin-core-${tag:1}"
139
+ fi
140
+ URL="https://bitcoin.org/$BIN_PATH/bitcoin-${tag:1}-$PLATFORM.tar.gz"
141
echo "Fetching: $URL"
142
curl -O $URL
143
tar -zxf "bitcoin-${tag:1}-$PLATFORM.tar.gz" -C "$tag" --strip-components=1 "bitcoin-${tag:1}"
0 commit comments