From 49af0571dbcc8e24ec98cd1e0cc2dc891f1b0e3e Mon Sep 17 00:00:00 2001 From: Jrohy Date: Fri, 28 May 2021 10:32:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96trojan=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asset/trojan-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asset/trojan-install.sh b/asset/trojan-install.sh index 6a42b2e9..c4d1a3bd 100644 --- a/asset/trojan-install.sh +++ b/asset/trojan-install.sh @@ -60,7 +60,7 @@ NAME=trojan if [[ -z $INSTALL_VERSION ]];then VERSION=$(curl -H 'Cache-Control: no-cache' -s "$CHECKVERSION" | grep 'tag_name' | cut -d\" -f4 | sed 's/v//g' | head -n 1) else - if [[ -z `curl -H 'Cache-Control: no-cache' -s "$CHECKVERSION"|grep $INSTALL_VERSION` ]];then + if [[ -z `curl -H 'Cache-Control: no-cache' -s "$CHECKVERSION"|grep 'tag_name'|grep $INSTALL_VERSION` ]];then echo "no $INSTALL_VERSION version file!" exit 1 fi