mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Make the output of pihole -q a bit clearer. Bye Bye nifty one-liner!
This commit is contained in:
parent
6305c7e2ab
commit
19b656132d
1 changed files with 10 additions and 1 deletions
11
pihole
11
pihole
|
@ -72,7 +72,16 @@ function setupLCDFunction {
|
|||
|
||||
function queryFunc {
|
||||
domain=$2
|
||||
for list in /etc/pihole/list.*;do echo $list;grep ${domain} $list;done
|
||||
for list in /etc/pihole/list.*
|
||||
do
|
||||
count=$(grep ${domain} $list | wc -l)
|
||||
|
||||
if [[ ${count} > 0 ]]; then
|
||||
echo "::: ${list} (${count} results)"
|
||||
grep ${domain} ${list}
|
||||
echo ""
|
||||
fi
|
||||
done
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue