mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 06:48:07 +00:00
Go POSIX
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
df3e9e5f51
commit
128a3ab1be
@ -629,9 +629,9 @@ checkDomain()
|
||||
|
||||
escapeDots()
|
||||
{
|
||||
# SC suggest bashism ${variable//search/replace}
|
||||
# shellcheck disable=SC2001
|
||||
# SH suggest bashism ${variable//search/replace}
|
||||
escaped=$(sed 's/\./\\./g' <<< "$1" )
|
||||
escaped=$(echo "$1" | sed 's/\./\\./g')
|
||||
echo "${escaped}"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user