summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrkhan <rblbl@mail.ru>2022-05-31 13:28:52 +0500
committerAlex Goodman <wagoodman@users.noreply.github.com>2023-07-06 11:15:06 -0400
commit69e6ba99934d8beb61263417085d0edbd31ddf9e (patch)
tree878fe9e5dc76a72669f022d5e059a0fd83df389e
parenta70b7acffcd7cbd49701db97f3f45c66d94de3ce (diff)
ubuntu install latest version script
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index 17a272c..cb3df08 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**