Fixed doc regarding getting the latest version

This commit is contained in:
Mike Farah 2022-11-08 08:50:48 +11:00
parent cf02b90624
commit c915113120

View File

@ -61,6 +61,9 @@ Take a look at the discussions for [common questions](https://github.com/mikefar
### wget ### wget
Use wget to download, gzipped pre-compiled binaries: Use wget to download, gzipped pre-compiled binaries:
For instance, VERSION=v4.2.0 and BINARY=yq_linux_amd64
#### Compressed via tar.gz #### Compressed via tar.gz
```bash ```bash
wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY}.tar.gz -O - |\ wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY}.tar.gz -O - |\
@ -74,9 +77,7 @@ wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -O /
chmod +x /usr/bin/yq chmod +x /usr/bin/yq
``` ```
For instance, VERSION=v4.2.0 and BINARY=yq_linux_amd64 #### Latest version
Use VERSION=latest to always get the latest version:
```bash ```bash
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq &&\ wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq &&\