Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
95dd7b53
Unverified
Commit
95dd7b53
authored
Oct 06, 2019
by
neil
Committed by
GitHub
Oct 06, 2019
Browse files
Merge pull request #2531 from moose-kazan/master
Fix for dns_vultr.sh
parents
ce182f43
65c950e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_vultr.sh
View file @
95dd7b53
...
...
@@ -106,9 +106,9 @@ _get_root() {
domain
=
$1
i
=
1
while
true
;
do
h
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
$i
-100
)
_debug h
"
$
h
"
if
[
-z
"
$
h
"
]
;
then
_domain
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
$i
-100
)
_debug h
"
$
_domain
"
if
[
-z
"
$
_domain
"
]
;
then
return
1
fi
...
...
@@ -119,11 +119,9 @@ _get_root() {
if
printf
"%s
\n
"
"
$response
"
|
grep
'^\[.*\]'
>
/dev/null
;
then
if
_contains
"
$response
"
"
\"
domain
\"
:
\"
$_domain
\"
"
;
then
_sub_domain
=
"
$(
echo
"
$fulldomain
"
|
sed
"s/
\\
.
$_domain
\$
//"
)
"
_domain
=
$_domain
return
0
else
_err
'Invalid domain'
return
1
_debug
"Go to next level of
$_domain
"
fi
else
_err
"
$response
"
...
...
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