From ba032e28c320fafebe66eb7cb3dbe1fbeec8cbef Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Thu, 14 Jan 2021 18:01:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 70a9b7f..3be5a7e 100644 --- a/install.sh +++ b/install.sh @@ -858,7 +858,7 @@ installXray() { # 安装Trojan-go installTrojanGo() { echoContent skyBlue "\n进度 $1/${totalProgress} : 安装Trojan-Go" - if find /etc/v2ray-agent/trojan/ | grep -q trojan-go; then + if ! find /etc/v2ray-agent/trojan/ | grep -q trojan-go; then version=$(curl -s https://github.com/p4gefau1t/trojan-go/releases | grep /trojan-go/releases/tag/ | head -1 | awk -F "[/]" '{print $6}' | awk -F "[>]" '{print $2}' | awk -F "[<]" '{print $1}') echoContent green " ---> Trojan-Go版本:${version}" if wget --help | grep -q show-progress; then