Commit dcc9624c authored by Shane Bishop's avatar Shane Bishop
Browse files

Update dns_dgon.sh

Make sure to initialize 'found' so that it isn't contaminated from previous commands/requests.
parent b3df1a2b
......@@ -192,6 +192,7 @@ _get_base_domain() {
## get URL for the list of domains
## may get: "links":{"pages":{"last":".../v2/domains/DOM/records?page=2","next":".../v2/domains/DOM/records?page=2"}}
DOMURL="https://api.digitalocean.com/v2/domains"
found=""
## while we dont have a matching domain we keep going
while [ -z "$found" ]; do
......
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