fix: Fix download mmctl script and point it to proper release branch (#23488)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
88d1743191
Коммит
3ac15290ef
@@ -16,10 +16,11 @@ fi
|
||||
BIN_PATH=${2:-bin}
|
||||
|
||||
|
||||
## If pattern release-X.Y exist in branch name we parse the release branch and we fallback to masterx
|
||||
THIS_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
RELEASE_PATTERN='release-[0-9]+\.[0-9]+(\.[0-9]+)?'
|
||||
if [[ $THIS_BRANCH =~ $RELEASE_PATTERN ]]; then
|
||||
RELEASE_TO_DOWNLOAD=$THIS_BRANCH
|
||||
RELEASE_TO_DOWNLOAD=$(echo $THIS_BRANCH | grep -Eo 'release-([0-9]+)?\.([0-9]+)?')
|
||||
else
|
||||
RELEASE_TO_DOWNLOAD="master"
|
||||
fi
|
||||
|
||||
Ссылка в новой задаче
Block a user