mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 14:58:08 +00:00
Make grep case insensitive
This commit is contained in:
parent
420158494d
commit
c674a175ee
4
pihole
4
pihole
@ -72,9 +72,9 @@ scanList(){
|
|||||||
list="${2}"
|
list="${2}"
|
||||||
method="${3}"
|
method="${3}"
|
||||||
if [[ ${method} == "-exact" ]] ; then
|
if [[ ${method} == "-exact" ]] ; then
|
||||||
grep -E "(^|\s)${domain}($|\s)" "${list}"
|
grep -i -E "(^|\s)${domain}($|\s)" "${list}"
|
||||||
else
|
else
|
||||||
grep "${domain}" "${list}"
|
grep -i "${domain}" "${list}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user