fix(脚本): 修改路径问题

pull/534/merge
mack-a 2021-01-14 18:01:11 +08:00
parent 791d615a16
commit ba032e28c3
1 changed files with 1 additions and 1 deletions

View File

@ -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