1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 06:48:07 +00:00

Make grep case insensitive

This commit is contained in:
DL6ER 2016-12-23 17:02:56 +01:00
parent 420158494d
commit c674a175ee
No known key found for this signature in database
GPG Key ID: BB8EC0BC77973A30

4
pihole
View File

@ -72,9 +72,9 @@ scanList(){
list="${2}"
method="${3}"
if [[ ${method} == "-exact" ]] ; then
grep -E "(^|\s)${domain}($|\s)" "${list}"
grep -i -E "(^|\s)${domain}($|\s)" "${list}"
else
grep "${domain}" "${list}"
grep -i "${domain}" "${list}"
fi
}