Skip to content

Commit 91c7c14

Browse files
committed
Update release download instructions
1 parent 64cb153 commit 91c7c14

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,16 @@ To download a stable release of goversion, see the
2626
example, to download the latest version run the following:
2727

2828
```bash
29-
VERSION=v0.1.0 # Change to get an older version.
30-
wget https://github.com/erwinvaneyk/goversion/releases/download/v${VERSION}/goversion_$(echo $VERSION | sed 's/v//')_$(uname)_$(uname -m).tar.gz -O goversion.tar.gz
29+
# Change to get an older version.
30+
VERSION=v0.1.1
31+
32+
# Download goversion
33+
curl -L https://github.com/erwinvaneyk/goversion/releases/download/${VERSION}/goversion_$(echo $VERSION | sed 's/v//')_$(uname)_$(uname -m).tar.gz > goversion.tar.gz
3134
tar -xvf goversion.tar.gz
32-
sudo mv ./goversion /usr/local/bin/goversion
35+
mv ./goversion /usr/local/bin/goversion
36+
37+
# Check if goversion is working
38+
which goversion && goversion version
3339
```
3440

3541
### Using Go tools to get the goversion CLI

0 commit comments

Comments
 (0)