From 2c7fa4a7b36aa4ae440ea5500438f72e56bb0f91 Mon Sep 17 00:00:00 2001 From: RD WebDesign Date: Wed, 18 Oct 2023 02:07:06 -0300 Subject: [PATCH] Avoid printing getFTLConfigValue return in statusFunc() Signed-off-by: RD WebDesign --- pihole | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pihole b/pihole index 7be13a6f..9cc1069f 100755 --- a/pihole +++ b/pihole @@ -345,7 +345,7 @@ analyze_ports() { statusFunc() { # Determine if there is pihole-FTL service is listening - local pid port ftl_pid_file + local pid port ftl_pid_file block_status ftl_pid_file="$(getFTLPIDFile)" @@ -375,7 +375,8 @@ statusFunc() { fi # Determine if Pi-hole's blocking is enabled - if getFTLConfigValue dns.blocking.active; then + block_status=$(getFTLConfigValue dns.blocking.active) + if [ ${block_status} == "true" ]; then case "${1}" in "web") echo "$port";; *) echo -e " ${TICK} Pi-hole blocking is enabled";;