mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-23 21:09:48 +00:00
No need for pipe here
This commit is contained in:
parent
f98de3d5db
commit
eb63e75379
1 changed files with 1 additions and 1 deletions
2
pihole
2
pihole
|
@ -70,7 +70,7 @@ setupLCDFunction() {
|
||||||
queryFunc() {
|
queryFunc() {
|
||||||
domain="${2}"
|
domain="${2}"
|
||||||
for list in /etc/pihole/list.*; do
|
for list in /etc/pihole/list.*; do
|
||||||
count=$(grep ${domain} $list | wc -l)
|
count=$(grep -c ${domain} $list)
|
||||||
echo "::: ${list} (${count} results)"
|
echo "::: ${list} (${count} results)"
|
||||||
if [[ ${count} > 0 ]]; then
|
if [[ ${count} > 0 ]]; then
|
||||||
grep ${domain} ${list}
|
grep ${domain} ${list}
|
||||||
|
|
Loading…
Add table
Reference in a new issue