mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix mmctl download bash script
Ticket: https://mattermost.atlassian.net/browse/DOPS-853
This commit is contained in:
parent
23f3a55cb6
commit
4da27d8e30
@ -19,9 +19,7 @@ BIN_PATH=${2:-bin}
|
||||
THIS_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
if [[ "$THIS_BRANCH" =~ 'release-'[0-9] ]];
|
||||
then
|
||||
# prefix to remove for lock release branches
|
||||
PREFIX_REMOVE="lock-"
|
||||
RELEASE_TO_DOWNLOAD=${THIS_BRANCH#"$PREFIX_REMOVE"}
|
||||
RELEASE_TO_DOWNLOAD=$(echo $THIS_BRANCH | grep -Eo 'release-.*')
|
||||
else
|
||||
RELEASE_TO_DOWNLOAD=master
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user