mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-07-27 23:54:06 +02:00
taillog Prevent grep interpeting search term as an option
Adds '--' indicating end of options before the user provided search pattern. Signed-off-by: Rob Gill <rrobgill@protonmail.com>
This commit is contained in:
parent
f90677a1ff
commit
f24fc9573a
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