mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Use grep invert-match
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
5bf90cb77d
commit
760dd01b50
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