diff --git a/setup-scripts/blocklist-airtable.py b/setup-scripts/blocklist-airtable.py index 379841eb..18191969 100755 --- a/setup-scripts/blocklist-airtable.py +++ b/setup-scripts/blocklist-airtable.py @@ -100,7 +100,7 @@ async def block_skylinks_from_airtable(): batch_size = 500 for i in range(0, len(skylinks), batch_size): cached_files_command = ( - "find /data/nginx/cache/ -type f | xargs --no-run-if-empty -n" + batch_size + " grep -Els '^Skynet-Skylink: (" + "find /data/nginx/cache/ -type f | xargs --no-run-if-empty -n" + str(batch_size) + " grep -Els '^Skynet-Skylink: (" + "|".join(skylinks[i:i+batch_size]) + ")'" )