Fix echoing wrong domain when converting wildcard
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
parent
70f2b26c86
commit
af5fc6547a
|
@ -138,7 +138,7 @@ AddDomain() {
|
||||||
bool=true
|
bool=true
|
||||||
domain="${1}"
|
domain="${1}"
|
||||||
|
|
||||||
[[ "${wildcard}" == true ]] && domain="((^)|(\\.))$(echo domain | sed "s/\./\\\./g")$"
|
[[ "${wildcard}" == true ]] && domain="((^)|(\\.))$(echo "${domain}" | sed "s/\./\\\./g")$"
|
||||||
|
|
||||||
# Is the domain in the list?
|
# Is the domain in the list?
|
||||||
# Search only for exactly matching lines
|
# Search only for exactly matching lines
|
||||||
|
@ -186,7 +186,7 @@ RemoveDomain() {
|
||||||
[[ -z "${type}" ]] && type="--wildcard-only"
|
[[ -z "${type}" ]] && type="--wildcard-only"
|
||||||
domain="${1}"
|
domain="${1}"
|
||||||
|
|
||||||
[[ "${wildcard}" == true ]] && domain="((^)|(\\.))$(echo domain | sed "s/\./\\\./g")$"
|
[[ "${wildcard}" == true ]] && domain="((^)|(\\.))$(echo "${domain}" | sed "s/\./\\\./g")$"
|
||||||
|
|
||||||
bool=true
|
bool=true
|
||||||
# Is it in the list?
|
# Is it in the list?
|
||||||
|
|
Loading…
Reference in New Issue