From cb5c94ef5e5ab6e4c9b5b25b6559480b4c40e80c Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Fri, 28 Oct 2016 15:13:04 -0700 Subject: [PATCH] Sorry, left that gravity.list parser in. Big debug files. Cleared that up. --- advanced/Scripts/piholeDebug.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/advanced/Scripts/piholeDebug.sh b/advanced/Scripts/piholeDebug.sh index 20abe318..eac4a30f 100755 --- a/advanced/Scripts/piholeDebug.sh +++ b/advanced/Scripts/piholeDebug.sh @@ -366,16 +366,12 @@ else printf ":::\tNo 01-pihole.conf file found\n" fi -echo "::: Writing size of gravity.list to debug log..." -header_write "gravity.list" -if [ -e "${GRAVITYFILE}" ]; then - wc -l "${GRAVITYFILE}" >> ${DEBUG_LOG} - log_write "" -else - log_write "No gravity.list file found!" - printf ":::\tNo gravity.list file found\n" -fi +header_write "Analyzing gravity.list" + + gravity_length=$(wc -l "${GRAVITYFILE}") \ + && log_write "${GRAVITYFILE} is ${gravity_length} lines long." \ + || log_echo "Warning: No gravity.list file found!" ### Pi-hole application specific logging ###