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
5da1d3b7
Commit
5da1d3b7
authored
May 08, 2017
by
neilpang
Browse files
minor fix format
parent
9bc5f686
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_nsone.sh
View file @
5da1d3b7
...
...
@@ -45,7 +45,7 @@ dns_nsone_add() {
_debug count
"
$count
"
if
[
"
$count
"
=
"0"
]
;
then
_info
"Adding record"
if
_nsone_rest PUT
"zones/
$_domain
/
$fulldomain
/TXT"
"{
\"
answers
\"
:[{
\"
answer
\"
:[
\"
$txtvalue
\"
]}],
\"
type
\"
:
\"
TXT
\"
,
\"
domain
\"
:
\"
$fulldomain
\"
,
\"
zone
\"
:
\"
$_domain
\"
}"
;
then
if
_contains
"
$response
"
"
$fulldomain
"
;
then
_info
"Added"
...
...
@@ -124,9 +124,9 @@ _get_root() {
fi
if
_contains
"
$response
"
"
\"
zone
\"
:
\"
$h
\"
"
;
then
_sub_domain
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
1-
$p
)
_domain
=
"
$h
"
return
0
_sub_domain
=
$(
printf
"%s"
"
$domain
"
|
cut
-d
.
-f
1-
$p
)
_domain
=
"
$h
"
return
0
fi
p
=
$i
i
=
$(
_math
"
$i
"
+ 1
)
...
...
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