Skip to content

Commit

Permalink
优化trojan安装
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed May 28, 2021
1 parent 191856f commit 49af057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asset/trojan-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49af057

Please sign in to comment.