diff --git a/src/main/scripts/cdpd-patcher b/src/main/scripts/cdpd-patcher index d752761..8d617b5 100755 --- a/src/main/scripts/cdpd-patcher +++ b/src/main/scripts/cdpd-patcher @@ -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