Provide support for named proposed branches for selection logic
This syncs the get_release_name_from_branch() function from grenade.
Change-Id: I1adabf07cdc3ea6863cd30d8b6454fb40fc20288
... | ... |
@@ -549,8 +549,7 @@ function is_ubuntu { |
549 | 549 |
# ``get_release_name_from_branch branch-name`` |
550 | 550 |
function get_release_name_from_branch { |
551 | 551 |
local branch=$1 |
552 |
- |
|
553 |
- if [[ $branch =~ "stable/" ]]; then |
|
552 |
+ if [[ $branch =~ "stable/" || $branch =~ "proposed/" ]]; then |
|
554 | 553 |
echo ${branch#*/} |
555 | 554 |
else |
556 | 555 |
echo "master" |