Do not call pihole-FTL --config interactively (#6368)

This commit is contained in:
Dominik 2025-07-27 20:25:31 +02:00 committed by GitHub
commit 0df3b41ca0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,9 @@ getFTLPID() {
# Example getFTLConfigValue dns.piholePTR # Example getFTLConfigValue dns.piholePTR
####################### #######################
getFTLConfigValue(){ 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
} }
####################### #######################