Update build_trojan-go.sh

This commit is contained in:
Teddysun 2020-08-24 13:22:48 +09:00
parent b47964ff95
commit 0573235486
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -19,7 +19,9 @@ for CMD in "${COMMANDS[@]}"; do
done
cd ${cur_dir}
git clone https://github.com/p4gefau1t/trojan-go.git
version=$(wget --no-check-certificate -qO- https://api.github.com/repos/p4gefau1t/trojan-go/tags | grep 'name' | cut -d\" -f4 | head -1)
echo "git clone -b ${version} https://github.com/p4gefau1t/trojan-go.git"
git clone -b ${version} https://github.com/p4gefau1t/trojan-go.git
cd trojan-go || exit 2
PACKAGE_NAME="github.com/p4gefau1t/trojan-go"