[ Agent ] [ Executor ] - fix bugs

This commit is contained in:
zeaslity
2023-10-24 11:41:46 +08:00
parent 4afb62f7cf
commit 1224dd8def
3 changed files with 17 additions and 4 deletions

View File

@@ -277,7 +277,7 @@ CheckAndDownloadLatestVersion() {
echo ""
colorEcho $BLUE "start to download the agent config!"
agentConfigFileList=$(curl $AgentConfigUrl | grep -v h1 | grep "a href=" | awk '{print$2}' | cut -d">" -f2 | cut -d"<" -f1 | cut -d"_" -f4-)
agentConfigFileList=$(curl "$AgentConfigUrl/" | grep -v h1 | grep "a href=" | awk '{print$2}' | cut -d">" -f2 | cut -d"<" -f1 | cut -d"_" -f4-)
for agentConfig in "${agentConfigFileList[@]}"; do
colorEcho $BLUE "agent config file is => $agentConfig"