mirror of
https://github.com/tanrax/maza-ad-blocking.git
synced 2024-11-22 07:05:41 +01:00
Clean list
This commit is contained in:
parent
a79d5fbf66
commit
38beec3f34
4
maza
4
maza
@ -32,9 +32,13 @@ EOF
|
||||
|
||||
## UPDATE
|
||||
update() {
|
||||
# Make conf folder
|
||||
rm -f $CONFIG/$LIST
|
||||
mkdir -p $CONFIG
|
||||
# Download DNS list
|
||||
curl -L -s "https://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts" -o "$CONFIG/$LIST"
|
||||
# Clear list
|
||||
sed -n "/<pre>/,/<\/pre>/p" list > "$CONFIG/$LIST"
|
||||
echo "Done!"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user