mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-18 06:08:21 +00:00
Parses host only file formats now. Previously only handled hosts file format.
Specifically, it can now handle the following list: 'http://mirror1.malwaredomains.com/files/justdomains'
This commit is contained in:
parent
552f980430
commit
37e926ce84
@ -69,7 +69,7 @@ do
|
|||||||
# Most of the lists downloaded are already in hosts file format but the spacing/formating is not contigious
|
# Most of the lists downloaded are already in hosts file format but the spacing/formating is not contigious
|
||||||
# This helps with that and makes it easier to read
|
# This helps with that and makes it easier to read
|
||||||
# It also helps with debugging so each stage of the script can be researched more in depth
|
# It also helps with debugging so each stage of the script can be researched more in depth
|
||||||
echo "$data" | awk 'NF {if ($1 !~ "#") print $2}' > $saveLocation."$justDomainsExtension"
|
echo "$data" | awk 'NF {if ($1 !~ "#") { if (NF>1) {print $2} else {print $1}}}' > $saveLocation."$justDomainsExtension"
|
||||||
else
|
else
|
||||||
echo "Skipping $domain list because it does not have any new entries..."
|
echo "Skipping $domain list because it does not have any new entries..."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user