fix: install script

This commit is contained in:
DaniPopes 2023-02-24 20:51:28 +01:00
parent 50a4b2a8a2
commit f805e8a0f5
No known key found for this signature in database
GPG Key ID: 0F09640DDB7AC692
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,6 @@ GETH_BUILD=${GETH_BUILD:-"1.11.2-73b01f40"}
SOLC_VERSION=${SOLC_VERSION:-"0.8.19"}
DIR="$HOME/bin"
# DIR="$HOME/github/danipopes/ethers-rs/test_bin"
mkdir -p "$DIR"
cd "$DIR"
export PATH="$DIR:$PATH"
@ -15,7 +14,8 @@ echo "Installing Geth"
PLATFORM="$(uname -s)"
case "$PLATFORM" in
Linux|Darwin)
GETH_ARCHIVE_NAME="geth-${PLATFORM,,}-amd64-$GETH_BUILD"
platform="$(echo "$PLATFORM" | awk "{print tolower($0)}")"
GETH_ARCHIVE_NAME="geth-$platform-amd64-$GETH_BUILD"
curl "https://gethstore.blob.core.windows.net/builds/$GETH_ARCHIVE_NAME.tar.gz" | tar -xzvf -
mv -f "$GETH_ARCHIVE_NAME/geth" ./
rm -rf "$GETH_ARCHIVE_NAME"