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))