mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
Merge pull request #665 from pi-hole/FleshOutPiholeQ
Make the output of pihole -q a bit clearer. Bye Bye nifty one-liner!
This commit is contained in:
commit
162a6b8b5c
1 changed files with 9 additions and 1 deletions
10
pihole
10
pihole
|
@ -72,7 +72,15 @@ 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)
|
||||
echo "::: ${list} (${count} results)"
|
||||
if [[ ${count} > 0 ]]; then
|
||||
grep ${domain} ${list}
|
||||
fi
|
||||
echo ""
|
||||
done
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue