mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 14:20:18 +00:00
Merge pull request #2334 from pi-hole/fix/gravity-count-regex
Fix gravity's regex counting logic
This commit is contained in:
commit
d2ae07e69b
1 changed files with 1 additions and 1 deletions
|
@ -464,7 +464,7 @@ gravity_ShowBlockCount() {
|
|||
fi
|
||||
|
||||
if [[ -f "${regexFile}" ]]; then
|
||||
num=$(grep -c "^(?!#)" "${regexFile}")
|
||||
num=$(grep -cv "^#" "${regexFile}")
|
||||
echo -e " ${INFO} Number of regex filters: ${num}"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue