World4You using _egrep_o

This commit is contained in:
Lorenz Stechauner 2020-11-26 13:59:18 +01:00
parent 8ee5726e0c
commit f3b5d5ab7b

View File

@ -15,7 +15,7 @@ dns_world4you_add() {
_debug fulldomain "$fqdn"
_debug txtvalue "$value"
tld=$(echo "$fqdn" | grep -o '[^.]*\.[^.]*$')
tld=$(echo "$fqdn" | _egrep_o '[^.]*\.[^.]*$')
record=$(echo "$fqdn" | cut -c"1-$((${#fqdn} - ${#tld} - 1))")
_login
@ -69,7 +69,7 @@ dns_world4you_rm() {
_debug fulldomain "$fqdn"
_debug txtvalue "$value"
tld=$(echo "$fqdn" | grep -o '[^.]*\.[^.]*$')
tld=$(echo "$fqdn" | _egrep_o '[^.]*\.[^.]*$')
record=$(echo "$fqdn" | cut -c"1-$((${#fqdn} - ${#tld} - 1))")
_login