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()
|
escapeDots()
|
||||||
{
|
{
|
||||||
|
# SC suggest bashism ${variable//search/replace}
|
||||||
# shellcheck disable=SC2001
|
# shellcheck disable=SC2001
|
||||||
# SH suggest bashism ${variable//search/replace}
|
escaped=$(echo "$1" | sed 's/\./\\./g')
|
||||||
escaped=$(sed 's/\./\\./g' <<< "$1" )
|
|
||||||
echo "${escaped}"
|
echo "${escaped}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user