mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-07-30 00:54:22 +02:00
taillog Prevent grep interpeting search term as an option (#6318)
This commit is contained in:
commit
f2280eb330
2
pihole
2
pihole
@ -396,7 +396,7 @@ tailFunc() {
|
||||
# Color blocklist/denylist/wildcard entries as red
|
||||
# Color A/AAAA/DHCP strings as white
|
||||
# Color everything else as gray
|
||||
tail -f $LOGFILE | grep --line-buffered "${1}" | sed -E \
|
||||
tail -f $LOGFILE | grep --line-buffered -- "${1}" | sed -E \
|
||||
-e "s,($(date +'%b %d ')| dnsmasq\[[0-9]*\]),,g" \
|
||||
-e "s,(.*(denied |gravity blocked ).*),${COL_RED}&${COL_NC}," \
|
||||
-e "s,.*(query\\[A|DHCP).*,${COL_NC}&${COL_NC}," \
|
||||
|
Loading…
x
Reference in New Issue
Block a user