mirror of
https://github.com/columndeeply/hosts.git
synced 2025-10-27 11:31:09 -04:00
Sort whitelist when merging
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user