From 0573235486c74aff9726ae18d1487448c17826f7 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Mon, 24 Aug 2020 13:22:48 +0900 Subject: [PATCH] Update build_trojan-go.sh --- docker/trojan-go/build_trojan-go.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/trojan-go/build_trojan-go.sh b/docker/trojan-go/build_trojan-go.sh index 73cbd94..70bf395 100644 --- a/docker/trojan-go/build_trojan-go.sh +++ b/docker/trojan-go/build_trojan-go.sh @@ -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"