No need for pipe here

This commit is contained in:
DL6ER 2016-12-05 17:06:20 +01:00
parent f98de3d5db
commit eb63e75379
1 changed files with 1 additions and 1 deletions

2
pihole
View File

@ -70,7 +70,7 @@ setupLCDFunction() {
queryFunc() {
domain="${2}"
for list in /etc/pihole/list.*; do
count=$(grep ${domain} $list | wc -l)
count=$(grep -c ${domain} $list)
echo "::: ${list} (${count} results)"
if [[ ${count} > 0 ]]; then
grep ${domain} ${list}