Commit f3b5d5ab authored by Lorenz Stechauner's avatar Lorenz Stechauner
Browse files

World4You using _egrep_o

parent 8ee5726e
...@@ -15,7 +15,7 @@ dns_world4you_add() { ...@@ -15,7 +15,7 @@ dns_world4you_add() {
_debug fulldomain "$fqdn" _debug fulldomain "$fqdn"
_debug txtvalue "$value" _debug txtvalue "$value"
tld=$(echo "$fqdn" | grep -o '[^.]*\.[^.]*$') tld=$(echo "$fqdn" | _egrep_o '[^.]*\.[^.]*$')
record=$(echo "$fqdn" | cut -c"1-$((${#fqdn} - ${#tld} - 1))") record=$(echo "$fqdn" | cut -c"1-$((${#fqdn} - ${#tld} - 1))")
_login _login
...@@ -69,7 +69,7 @@ dns_world4you_rm() { ...@@ -69,7 +69,7 @@ dns_world4you_rm() {
_debug fulldomain "$fqdn" _debug fulldomain "$fqdn"
_debug txtvalue "$value" _debug txtvalue "$value"
tld=$(echo "$fqdn" | grep -o '[^.]*\.[^.]*$') tld=$(echo "$fqdn" | _egrep_o '[^.]*\.[^.]*$')
record=$(echo "$fqdn" | cut -c"1-$((${#fqdn} - ${#tld} - 1))") record=$(echo "$fqdn" | cut -c"1-$((${#fqdn} - ${#tld} - 1))")
_login _login
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment