From be2c7aba5386ec34fa887357ca5fa9a2907309ff Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Wed, 7 Jun 2023 11:58:16 +0200 Subject: [PATCH] Get wsl-vpnkit version from API Automatically get latest wsl-vpnkit version from GitHub api with curl. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c57278..ef549de 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ The `wsl-vpnkit` script can be used as a normal script in your existing distro. sudo apt-get install iproute2 iptables iputils-ping dnsutils wget # download wsl-vpnkit and unpack -VERSION=v0.4.x +VERSION=$(curl -m 5 --retry 3 -sL https://api.github.com/repos/sakai135/wsl-vpnkit/releases/latest 2>&1 | jq -r '.tag_name') wget https://github.com/sakai135/wsl-vpnkit/releases/download/$VERSION/wsl-vpnkit.tar.gz tar --strip-components=1 -xf wsl-vpnkit.tar.gz \ app/wsl-vpnkit \