Use non-interactive shell in utils.sh:getFTLConfigValue to avoid colored output

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2025-07-26 19:40:05 +02:00
parent 342c8b693b
commit 5cb601200c
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

View File

@ -73,7 +73,9 @@ getFTLPID() {
# Example getFTLConfigValue dns.piholePTR
#######################
getFTLConfigValue(){
pihole-FTL --config -q "${1}"
# Pipe to cat to avoid pihole-FTL assuming this is an interactive command
# returning colored output.
pihole-FTL --config -q "${1}" | cat
}
#######################