[ 项目 ] 修改CI CD流程 - 1
This commit is contained in:
@@ -263,7 +263,7 @@ DownloadAllFile() {
|
|||||||
CheckAndDownloadLatestVersion() {
|
CheckAndDownloadLatestVersion() {
|
||||||
|
|
||||||
log "checking for the latest version"
|
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 ""
|
||||||
log "octopus agent latest version is => [ $latestVersion ]"
|
log "octopus agent latest version is => [ $latestVersion ]"
|
||||||
|
|||||||
Reference in New Issue
Block a user