Skip to content

Commit

Permalink
Try to fix regex for picking crd changes
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Stejskal <[email protected]>
  • Loading branch information
Frawless committed Jul 26, 2023
1 parent 6bf8dfe commit 7d3a867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image-update/strimzi-image-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7d3a867

Please sign in to comment.