Browse Source

Made string removal in root domain detection posix compliant

pull/6178/head
peterv99 3 weeks ago
parent
commit
ab1a2045d9
  1. 2
      dnsapi/dns_mijn_host.sh

2
dnsapi/dns_mijn_host.sh

@ -147,7 +147,7 @@ _get_root() {
for rootDomain in $rootDomains; do for rootDomain in $rootDomains; do
if _contains "$domain" "$rootDomain"; then if _contains "$domain" "$rootDomain"; then
_domain="$rootDomain" _domain="$rootDomain"
_sub_domain=$(printf '%s\n' "${domain//."$rootDomain"/}")
_sub_domain=$(echo "$domain" | sed "s/$rootDomain//g")
return 0 return 0
fi fi
done done

Loading…
Cancel
Save