From 69e6ba99934d8beb61263417085d0edbd31ddf9e Mon Sep 17 00:00:00 2001 From: Orkhan Date: Tue, 31 May 2022 13:28:52 +0500 Subject: [PATCH 1/2] ubuntu install latest version script --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 17a272c9..cb3df083 100644 --- a/README.md +++ b/README.md @@ -93,8 +93,9 @@ With valid `source` options as such: **Ubuntu/Debian** ```bash -curl -OL https://github.com/wagoodman/dive/releases/download/v0.9.2/dive_0.9.2_linux_amd64.deb -sudo apt install ./dive_0.9.2_linux_amd64.deb +export DIVE_VERSION=$(wget -qO - "https://api.github.com/repos/wagoodman/dive/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') +curl -OL https://github.com/wagoodman/dive/releases/download/v${DIVE_VERSION}/dive_${DIVE_VERSION}_linux_amd64.deb +sudo apt install ./dive_${DIVE_VERSION}_linux_amd64.deb ``` **RHEL/Centos** From 6ba95122a52f65ae11aa897e8bf418b619a36fb6 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Thu, 6 Jul 2023 11:13:58 -0400 Subject: [PATCH 2/2] orient all install refs around the latest version --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cb3df083..b50c5a02 100644 --- a/README.md +++ b/README.md @@ -93,14 +93,15 @@ With valid `source` options as such: **Ubuntu/Debian** ```bash -export DIVE_VERSION=$(wget -qO - "https://api.github.com/repos/wagoodman/dive/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') +export DIVE_VERSION=$(curl -sL "https://api.github.com/repos/wagoodman/dive/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') curl -OL https://github.com/wagoodman/dive/releases/download/v${DIVE_VERSION}/dive_${DIVE_VERSION}_linux_amd64.deb sudo apt install ./dive_${DIVE_VERSION}_linux_amd64.deb ``` **RHEL/Centos** ```bash -curl -OL https://github.com/wagoodman/dive/releases/download/v0.9.2/dive_0.9.2_linux_amd64.rpm +export DIVE_VERSION=$(curl -sL "https://api.github.com/repos/wagoodman/dive/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') +curl -OL https://github.com/wagoodman/dive/releases/download/v${DIVE_VERSION}/dive_${DIVE_VERSION}_linux_amd64.rpm rpm -i dive_0.9.2_linux_amd64.rpm ``` @@ -126,11 +127,11 @@ If you use [MacPorts](https://www.macports.org): sudo port install dive ``` -Or download the latest Darwin build from the [releases page](https://github.com/wagoodman/dive/releases/download/v0.9.2/dive_0.9.2_darwin_amd64.tar.gz). +Or download the latest Darwin build from the [releases page](https://github.com/wagoodman/dive/releases/latest). **Windows** -Download the [latest release](https://github.com/wagoodman/dive/releases/download/v0.9.2/dive_0.9.2_windows_amd64.zip). +Download the [latest release](https://github.com/wagoodman/dive/releases/latest). **Go tools** Requires Go version 1.10 or higher.