mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
Don't count commented out regex lines
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
parent
b2a36f71a0
commit
72be7ad5f0
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ gravity_ShowBlockCount() {
|
|||
fi
|
||||
|
||||
if [[ -f "${regexFile}" ]]; then
|
||||
num=$(grep -c "^" "${regexFile}")
|
||||
num=$(grep -c "^(?!#)" "${regexFile}")
|
||||
echo -e " ${INFO} Number of regex filters: ${num}"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue