From c915113120c4e07a4d82a77b4e746df73543bbb6 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Tue, 8 Nov 2022 08:50:48 +1100 Subject: [PATCH] Fixed doc regarding getting the latest version --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 63b93b7a..dbf5298e 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,9 @@ Take a look at the discussions for [common questions](https://github.com/mikefar ### wget Use wget to download, gzipped pre-compiled binaries: + +For instance, VERSION=v4.2.0 and BINARY=yq_linux_amd64 + #### Compressed via tar.gz ```bash 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 ``` -For instance, VERSION=v4.2.0 and BINARY=yq_linux_amd64 - -Use VERSION=latest to always get the latest version: +#### Latest version ```bash wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq &&\