use correct github account for v1.1.0-alpha.4 pre1 downloads

This commit is contained in:
Dustin Brody 2021-05-05 16:10:16 +02:00
parent 01f68833de
commit 03a4442b65
No known key found for this signature in database
GPG Key ID: 3D7A11A0156519DC
1 changed files with 7 additions and 1 deletions

View File

@ -32,8 +32,14 @@ dl_version() {
for flavour in "${FLAVOURS[@]}"; do
if [[ ! -e "${flavour}.tar.gz" ]]; then
echo "Downloading: ${version}/${flavour}.tar.gz"
# TODO temporary hack; remove when official v1.0.0-alpha.4 appears
if [[ "${version}" == "v1.0.1" ]]; then
github_account="ethereum"
else
github_account="protolambda"
fi
curl --location --remote-name --silent --show-error \
"https://github.com/ethereum/eth2.0-spec-tests/releases/download/${version}/${flavour}.tar.gz" \
"https://github.com/${github_account}/eth2.0-spec-tests/releases/download/${version}/${flavour}.tar.gz" \
|| {
echo "Curl failed. Aborting"
rm -f "${flavour}.tar.gz"