diff --git a/image-update/strimzi-image-update.sh b/image-update/strimzi-image-update.sh index 122ade39..d95c186c 100755 --- a/image-update/strimzi-image-update.sh +++ b/image-update/strimzi-image-update.sh @@ -98,7 +98,7 @@ do do echo "Filename for sync: $C_FILE" - if [[ "$C_FILE" =~ "(Crd|ClusterRole-)" ]]; then + if [[ $C_FILE =~ *"Crd"* ]] || [[ $C_FILE =~ *"ClusterRole-"* ]]; then echo "Syncing $C_FILE to $SHARED_YAML_BUNDLE_FILES" if test -f "$TARGET_DIR/$SHARED_YAML_BUNDLE_FILES/$C_FILE"; then export METADATA=$(yq e '.metadata' "$TARGET_DIR/$SHARED_YAML_BUNDLE_FILES/$C_FILE")