No need for pipe here

pull/962/head
DL6ER 8 years ago
parent f98de3d5db
commit eb63e75379

@ -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}

Loading…
Cancel
Save