1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-03 12:40:56 +00:00

maybe fixes #2028 by deleting null bytes

Signed-off-by: Jacob Salmela <jacob.salmela@pi-hole.net>
This commit is contained in:
Jacob Salmela 2018-03-31 14:08:48 -05:00
parent 971e6f2664
commit c3f391dc5a
No known key found for this signature in database
GPG Key ID: 1962FF1A5046135E

View File

@ -384,7 +384,7 @@ gravity_ConsolidateDownloadedBlocklists() {
tr -d '\r' < "${i}" | tr '[:upper:]' '[:lower:]' >> "${piholeDir}/${matterAndLight}"
# Ensure that the first line of a new list is on a new line
lastLine=$(tail -1 "${piholeDir}/${matterAndLight}")
lastLine=$(tail -1 "${piholeDir}/${matterAndLight}" | tr -d '\0')
if [[ "${#lastLine}" -gt 0 ]]; then
echo "" >> "${piholeDir}/${matterAndLight}"
fi