mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 23:08:07 +00:00
Merge pull request #21 from rmceoin/master
Strip carriage returns on matter so that whitelists work correctly.
This commit is contained in:
commit
a908dfdd28
@ -77,13 +77,13 @@ done
|
|||||||
|
|
||||||
# Find all files with the .domains extension and compile them into one file
|
# Find all files with the .domains extension and compile them into one file
|
||||||
echo "** Aggregating list of domains..."
|
echo "** Aggregating list of domains..."
|
||||||
find $origin/ -type f -name "*.$justDomainsExtension" -exec cat {} \; > $origin/$matter
|
find $origin/ -type f -name "*.$justDomainsExtension" -exec cat {} \; | tr -d '\r' > $origin/$matter
|
||||||
|
|
||||||
# Append blacklist entries if they exist
|
# Append blacklist entries if they exist
|
||||||
if [[ -f $blacklist ]];then
|
if [[ -f $blacklist ]];then
|
||||||
numberOf=$(cat $blacklist | wc -l | sed 's/^[ \t]*//')
|
numberOf=$(cat $blacklist | wc -l | sed 's/^[ \t]*//')
|
||||||
echo "** Blacklisting $numberOf domain(s)..."
|
echo "** Blacklisting $numberOf domain(s)..."
|
||||||
cat $blacklist >> /tmp/matter.txt
|
cat $blacklist >> $origin/$matter
|
||||||
else
|
else
|
||||||
:
|
:
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user