Skip to content

Instantly share code, notes, and snippets.

@duccas
Last active January 25, 2021 19:09
Show Gist options
  • Save duccas/4336276ee64c9106150f98e0d1476e0a to your computer and use it in GitHub Desktop.
Save duccas/4336276ee64c9106150f98e0d1476e0a to your computer and use it in GitHub Desktop.
#!/bin/bash
VERSION=$1
if [ "$VERSION" == "" ]; then
VERSION="1.1.3"
fi
cd \
&& export VERSION="$VERSION" \
&& wget https://github.com/ava-labs/avalanchego/releases/download/v$VERSION/avalanchego-linux-amd64-v$VERSION.tar.gz \
&& tar -xvf avalanchego-linux-amd64-v$VERSION.tar.gz \
&& cd avalanchego-v$VERSION \
&& ./avalanchego
echo "--------AVALANCHE VERSION v$VERSION UPDATED--------"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment