mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Go POSIX
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
df3e9e5f51
commit
128a3ab1be
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue