Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
b2ff9240
Unverified
Commit
b2ff9240
authored
Jan 03, 2020
by
neil
Committed by
GitHub
Jan 03, 2020
Browse files
Merge pull request #2662 from tambetliiv/zone-root-check
zone.eu dns api: use different method to get root
parents
7a3c61b7
b59b0f03
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_zone.sh
View file @
b2ff9240
...
...
@@ -136,10 +136,10 @@ _get_root() {
if
[
-z
"
$h
"
]
;
then
return
1
fi
if
!
_zone_rest GET
"dns/
$h
/a
"
;
then
if
!
_zone_rest GET
"dns/
$h
"
;
then
return
1
fi
if
_contains
"
$response
"
"
\"
name
\"
:
\"
$h
\"
"
>
/dev/null
;
then
if
_contains
"
$response
"
"
\"
identificator
\"
:
\"
$h
\"
"
>
/dev/null
;
then
_domain
=
$h
return
0
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment