From 2782c6dc91ab38f6947a38ac63cef85a7b460716 Mon Sep 17 00:00:00 2001 From: LoveesYe <109154433+LoveesYe@users.noreply.github.com> Date: Tue, 12 Jul 2022 19:43:29 +0200 Subject: [PATCH] Update agent.sh --- agent/agent.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/agent.sh b/agent/agent.sh index 0f17267..162d3d5 100644 --- a/agent/agent.sh +++ b/agent/agent.sh @@ -218,7 +218,7 @@ else second_part=$(printf "%02d\n" `echo $MASTER_VER | awk -F'.' '{print $2}'`) third_part=$(printf "%02d\n" `echo $MASTER_VER | awk -F'.' '{print $3}'`) version_num="$first_part$second_part$third_part" - agent_ver=`(curl -s -m 5 "https://github.com/LoveesYe/cdnflydadao/raw/main/web/upgrades?version_num=$version_num" || curl -s -m 5 "https://github.com/LoveesYe/cdnflydadao/raw/main/web/upgrades?version_num=$version_num") | grep -Po '"agent_ver":"\d+"' | grep -Po "\d+" || true` + agent_ver=`(curl -s -m 5 "http://auth.fikkey.com/master/upgrades?version_num=$version_num" || curl -s -m 5 "https://github.com/LoveesYe/cdnflydadao/raw/main/web/upgrades?version_num=$version_num") | grep -Po '"agent_ver":"\d+"' | grep -Po "\d+" || true` if [[ "$agent_ver" == "" ]]; then echo "无法获取agent版本" exit 1