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
c572ce94
Commit
c572ce94
authored
Dec 04, 2016
by
neil
Committed by
GitHub
Dec 04, 2016
Browse files
Dev (#434)
* do not use script home * fix format * fix issue when there is no one records in the domain.
parent
048e5210
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_cx.sh
View file @
c572ce94
...
...
@@ -69,11 +69,11 @@ existing_records() {
_debug
"Getting txt records"
root
=
$1
sub
=
$2
count
=
0
if
!
_rest GET
"record/
$_domain_id
?:domain_id?host_id=0&offset=0&row_num=100"
;
then
return
1
fi
count
=
0
seg
=
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
"{[^
\{
]*host
\"
:
\"
$_sub_domain
\"
[^
\}
]*
\}
"
)
_debug seg
"
$seg
"
if
[
-z
"
$seg
"
]
;
then
...
...
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