From cb8323801b0852b0235c9186c81c8ee37584ecd8 Mon Sep 17 00:00:00 2001 From: Dan Maher Date: Mon, 10 Nov 2025 16:47:16 +0100 Subject: [PATCH] [utilities] make pattern match more accurate --- utilities/change_sponsor_logo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/change_sponsor_logo.sh b/utilities/change_sponsor_logo.sh index 7fff3a899af..3137d0bf132 100755 --- a/utilities/change_sponsor_logo.sh +++ b/utilities/change_sponsor_logo.sh @@ -50,7 +50,7 @@ cp "$IMAGE_FILE" "$OLD_STATIC_IMAGE" cp "$SPONSOR_FILE" "$OLD_SPONSOR_FILE" # Find all events with this sponsor in years other than this year, excluding existing renames -SPONSOR_REGEX="id:[ ]+$SPONSOR_NAME[ $]*" +SPONSOR_REGEX="id:[ ]+$SPONSOR_NAME[ ]*$" pushd "$(gitroot)/data/events" > /dev/null EVENTS_TO_MODIFY=($(git ls-tree -r --name-only HEAD | xargs grep -E "$SPONSOR_REGEX" | grep -v 'before' | grep -v "^$(date +%Y)" | cut -d ':' -f 1))