From 70e8d12f248101de73b4e8dabb6e8476e347af8d Mon Sep 17 00:00:00 2001 From: zeaslity Date: Fri, 30 Jun 2023 15:27:54 +0800 Subject: [PATCH] =?UTF-8?q?[=20=E9=A1=B9=E7=9B=AE=20]=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?CI=20CD=E6=B5=81=E7=A8=8B=20-=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/src/main/java/io/wdd/source/shell/agent-bootup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/main/java/io/wdd/source/shell/agent-bootup.sh b/source/src/main/java/io/wdd/source/shell/agent-bootup.sh index c95b650..8e1b97a 100644 --- a/source/src/main/java/io/wdd/source/shell/agent-bootup.sh +++ b/source/src/main/java/io/wdd/source/shell/agent-bootup.sh @@ -263,7 +263,7 @@ DownloadAllFile() { CheckAndDownloadLatestVersion() { log "checking for the latest version" - local latestVersion=$(curl $OctopusAgentUrl | grep -v h1 | grep "a href=" | awk '{print$2}' | cut -d">" -f2 | cut -d"<" -f1) + local latestVersion=$(curl $OctopusAgentUrl | grep -v h1 | grep "a href=" | awk '{print$2}' | cut -d">" -f2 | cut -d"<" -f1 | cut -d"_" -f4-) log "" log "octopus agent latest version is => [ $latestVersion ]"