mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-07-31 01:24:17 +02:00
Use non-interactive shell in utils.sh:getFTLConfigValue to avoid colored output
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
342c8b693b
commit
5cb601200c
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user