Sort whitelist when merging

This commit is contained in:
columndeeply
2025-03-02 08:12:28 +01:00
parent 051b1c69f0
commit 7b1f2933e9

View File

@ -23,6 +23,8 @@ rm -f ../hosts*
# Remove duplicates # Remove duplicates
sort -u -o merged merged.tmp sort -u -o merged merged.tmp
sort -u -o whitelist ../whitelist
mv whitelist ../whitelist
# Check whitelist and remove matches # Check whitelist and remove matches
comm -2 -3 merged ../whitelist > merged2 comm -2 -3 merged ../whitelist > merged2