Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2022-10-22 22:37:05 +02:00
parent df3e9e5f51
commit 128a3ab1be
No known key found for this signature in database

View file

@ -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}"
}