mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Merge pull request #1024 from pi-hole/fix/grep_case_insensitive
Make grep case insensitive
This commit is contained in:
commit
eb13d846ef
1 changed files with 2 additions and 2 deletions
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 a new issue