Commit 7820467d authored by neil's avatar neil Committed by GitHub
Browse files

Merge pull request #255 from jim3mar/master

dns_cx.sh prefix and suffix domain bug fixed
parents 1e6b68f5 fe09757c
...@@ -145,7 +145,7 @@ _get_root() { ...@@ -145,7 +145,7 @@ _get_root() {
fi fi
if printf "$response" | grep "$h." >/dev/null ; then if printf "$response" | grep "$h." >/dev/null ; then
seg=$(printf "$response" | grep -o "{[^{]*$h\.[^}]*\}" ) seg=$(printf "$response" | grep -o "{[^{]*\"$h\.\"[^}]*\}" )
_debug seg "$seg" _debug seg "$seg"
_domain_id=$(printf "$seg" | grep -o \"id\":\"[^\"]*\" | cut -d : -f 2 | tr -d \") _domain_id=$(printf "$seg" | grep -o \"id\":\"[^\"]*\" | cut -d : -f 2 | tr -d \")
_debug _domain_id "$_domain_id" _debug _domain_id "$_domain_id"
......
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