fix: use curl for windows installation

This commit is contained in:
DaniPopes 2023-02-24 21:16:51 +01:00
parent 362de60dd1
commit 8ae67b4720
No known key found for this signature in database
GPG Key ID: 0F09640DDB7AC692
1 changed files with 4 additions and 3 deletions

View File

@ -23,10 +23,11 @@ case "$PLATFORM" in
;; ;;
*) *)
GETH_ARCHIVE_NAME="geth-windows-amd64-$GETH_BUILD" GETH_ARCHIVE_NAME="geth-windows-amd64-$GETH_BUILD"
wget -q "https://gethstore.blob.core.windows.net/builds/$GETH_ARCHIVE_NAME.zip" zip="$GETH_ARCHIVE_NAME.zip"
unzip "$GETH_ARCHIVE_NAME.zip" curl -o "$zip" "https://gethstore.blob.core.windows.net/builds/$zip"
unzip "$zip"
mv -f "$GETH_ARCHIVE_NAME/geth.exe" ./ mv -f "$GETH_ARCHIVE_NAME/geth.exe" ./
rm -rf "$GETH_ARCHIVE_NAME" "$GETH_ARCHIVE_NAME.zip" rm -rf "$GETH_ARCHIVE_NAME" "$zip"
;; ;;
esac esac