update script

This commit is contained in:
DaniPopes 2023-02-24 22:09:39 +01:00
parent e06fcd4fd3
commit 7a88c65c16
No known key found for this signature in database
GPG Key ID: 0F09640DDB7AC692
1 changed files with 3 additions and 4 deletions

View File

@ -11,11 +11,10 @@ cd "$DIR"
export PATH="$DIR:$PATH" export PATH="$DIR:$PATH"
echo "Installing Geth" echo "Installing Geth"
PLATFORM="$(uname -s)" PLATFORM="$(uname -s | awk '{print tolower($0)}')"
case "$PLATFORM" in case "$PLATFORM" in
Linux|Darwin) linux|darwin)
platform="$(echo "$PLATFORM" | awk '{print tolower($0)}')" GETH_ARCHIVE_NAME="geth-$PLATFORM-amd64-$GETH_BUILD"
GETH_ARCHIVE_NAME="geth-$platform-amd64-$GETH_BUILD"
curl "https://gethstore.blob.core.windows.net/builds/$GETH_ARCHIVE_NAME.tar.gz" | tar -xzvf - curl "https://gethstore.blob.core.windows.net/builds/$GETH_ARCHIVE_NAME.tar.gz" | tar -xzvf -
mv -f "$GETH_ARCHIVE_NAME/geth" ./ mv -f "$GETH_ARCHIVE_NAME/geth" ./
rm -rf "$GETH_ARCHIVE_NAME" rm -rf "$GETH_ARCHIVE_NAME"