mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Prevent full stop being interpreted as regex
Signed off by WaLLy3K <wally3k@pi-hole.net>
This commit is contained in:
parent
3b300a4d6a
commit
80c40e6050
1 changed files with 2 additions and 1 deletions
3
pihole
3
pihole
|
@ -85,7 +85,8 @@ updateGravityFunc() {
|
|||
|
||||
# Scan an array of files for matching strings
|
||||
scanList(){
|
||||
local domain="${1}" lists="${2}" type="${3:-}"
|
||||
# Escape full stops
|
||||
local domain="${1//./\\.}" lists="${2}" type="${3:-}"
|
||||
|
||||
# Prevent grep from printing file path
|
||||
cd "/etc/pihole" || exit 1
|
||||
|
|
Loading…
Reference in a new issue