[ 项目 ] 修改CI CD流程 - 1

This commit is contained in:
zeaslity
2023-06-30 15:27:54 +08:00
parent 1e20429b3a
commit 70e8d12f24

View File

@@ -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 ]"