1
0
mirror of https://github.com/moparisthebest/pi-hole synced 2024-11-25 02:32:15 -05:00

hide minor error

An error shows up on the first install that `latentWhitelist.txt` doesn't exist and can't be removed.  Redirecting STDERR should fix this.
This commit is contained in:
Jacob Salmela 2015-12-27 12:25:35 -06:00
parent 94f7363b8f
commit 26dcbfc1f9

View File

@ -183,7 +183,7 @@ function gravity_pulsar() {
# regexp so it can be parsed out with grep -x
awk -F '[# \t]' 'NF>0&&$1!="" {print "^"$1"$"}' $whitelist | sed 's/\./\\./g' > $latentWhitelist
else
rm $latentWhitelist >/dev/null
rm $latentWhitelist 2>/dev/null
fi
# Prevent our sources from being pulled into the hole