[ Agent ] [ Executor ] - fix bugs
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user