From c0c4c92f2bbdaf878ca6b7d1241cde04078ac69b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Guti=C3=A9rrez=20Segal=C3=A9s?= Date: Fri, 3 Nov 2023 16:17:00 -0300 Subject: [PATCH] docts: update install.md Download the binary for the right OS/Arch combination. Signed-off-by: Raul Gutierrez Segales --- docs/install.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/install.md b/docs/install.md index d011ebc5e2..9ec3baf39d 100644 --- a/docs/install.md +++ b/docs/install.md @@ -6,8 +6,10 @@ On Linux and macOS you can download as follows: ```console LATEST_VERSION=$(wget -O - "https://api.github.com/repos/open-policy-agent/conftest/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | cut -c 2-) -wget "https://github.com/open-policy-agent/conftest/releases/download/v${LATEST_VERSION}/conftest_${LATEST_VERSION}_Linux_x86_64.tar.gz" -tar xzf conftest_${LATEST_VERSION}_Linux_x86_64.tar.gz +ARCH=$(arch) +SYSTEM=$(uname) +wget "https://github.com/open-policy-agent/conftest/releases/download/v${LATEST_VERSION}/conftest_${LATEST_VERSION}_${SYSTEM}_${ARCH}.tar.gz" +tar xzf conftest_${LATEST_VERSION}_${SYSTEM}_${ARCH}.tar.gz sudo mv conftest /usr/local/bin ```