Procházet zdrojové kódy

Retrieve lastest version from github api

v2ray před 9 roky
rodič
revize
bc0819c05f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      release/install-release.sh

+ 1 - 1
release/install-release.sh

@@ -62,7 +62,7 @@ if pgrep "v2ray" > /dev/null ; then
   V2RAY_RUNNING=1
 fi
 
-VER="v1.7"
+VER="$(curl -s https://api.github.com/repos/v2ray/v2ray-core/releases/latest | grep 'tag_name' | cut -d\" -f4)"
 
 ARCH=$(uname -m)
 VDIS="64"