From a82f0de746ca2059630edf5a95d5ee9193e9444f Mon Sep 17 00:00:00 2001 From: Ghost in the Cyber <52607595+cyberblood@users.noreply.github.com> Date: Sun, 15 Mar 2020 00:49:12 +0800 Subject: [PATCH] [v1.0.10] Fix download v2ray core bug. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index c707c06..edb1bbb 100644 --- a/install.sh +++ b/install.sh @@ -145,7 +145,7 @@ on_install() { # download latest v2ray core from official link ui_print "- Connect official V2Ray download link." official_v2ray_link="https://github.com/v2ray/v2ray-core/releases" - latest_v2ray_version=`curl -s -I "${official_v2ray_link}/latest" | grep Location | grep -o "tag.*" | grep -o "v[0-9.]*"` + latest_v2ray_version=`curl -s -I "${official_v2ray_link}/latest" | grep -i location | grep -o "tag.*" | grep -o "v[0-9.]*"` if [ "${latest_v2ray_version}" = "" ] ; then ui_print "Error: Connect official V2Ray download link failed." exit 1