Skip to content

Commit

Permalink
Merge pull request #17 from kasakrisz/master-support-digitx-v2
Browse files Browse the repository at this point in the history
support multiple digits before 'x' in release line branch names
  • Loading branch information
abstractdog authored May 16, 2023
2 parents 3d515e9 + d6d471d commit f7a2de0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/scripts/cdpd-patcher
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ case "$VERSION" in
*)
esac

# Need to add extglob to enable using pattern matching like *(pattern-list)
# *([[:digit:]]) - matches 0 or more occurrences of any digit
shopt -s extglob
case "$VERSION" in
cdw-master|CDWH-*|cdpd-master|*-maint|*.x|CDH-7.1.7.*|CDH-7.1.8.*)
cdw-master|CDWH-*|cdpd-master|*-maint|*.*([[:digit:]])x|CDH-7.1.7.*|CDH-7.1.8.*)
if [[ "$VERSION" = "cdw-master" || "$VERSION" = "CDWH-"* ]]; then
echo "@@@ changing stack to CDWH"
STACK=CDWH
Expand Down

0 comments on commit f7a2de0

Please sign in to comment.