Skip to content

Commit

Permalink
plugins: whitespace sweep
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Sep 22, 2019
1 parent 59260d6 commit 1b52a3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ install() {
for FILE in $(find ${WORKDIR} -type f); do
WHITE=$(cat ${DESTDIR}/whitelist.inc | tr ',' '|')
if [ -z "${WHITE}" ]; then
cat ${FILE} | sort -u | awk '{printf "server:\n", $1; printf "local-data: \"%s A 0.0.0.0\"\n", $1}' > ${FILE}.inc
cat ${FILE} | sort -u | awk '{printf "server:\n", $1; printf "local-data: \"%s A 0.0.0.0\"\n", $1}' > ${FILE}.inc
else
cat ${FILE} | sort -u | egrep -v "$WHITE" | awk '{printf "server:\n", $1; printf "local-data: \"%s A 0.0.0.0\"\n", $1}' > ${FILE}.inc
fi
fi
done
# Merge resulting files (/dev/null in case there are none)
cat $(find ${WORKDIR} -type f -name "*.inc") /dev/null > ${DESTDIR}/dnsbl.conf
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<all>All</all>
<ipv4>IPv4</ipv4>
<ipv6>IPv6</ipv6>
</OptionValues>
</OptionValues>
</ip_version>
<bind_address type="NetworkField">
<Required>N</Required>
Expand Down

0 comments on commit 1b52a3f

Please sign in to comment.