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
5a883889
Commit
5a883889
authored
Feb 26, 2018
by
nytral
Browse files
fixes
parent
6baa6d48
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_me.sh
View file @
5a883889
...
...
@@ -43,8 +43,6 @@ dns_me_add() {
return
1
fi
count
=
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
"
\"
totalRecords
\"
:[^,]*"
|
cut
-d
:
-f
2
)
_debug count
"
$count
"
# _info "Adding record"
if
_me_rest POST
"
$_domain_id
/records/"
"{
\"
type
\"
:
\"
TXT
\"
,
\"
name
\"
:
\"
$_sub_domain
\"
,
\"
value
\"
:
\"
$txtvalue
\"
,
\"
gtdLocation
\"
:
\"
DEFAULT
\"
,
\"
ttl
\"
:120}"
;
then
if
printf
--
"%s"
"
$response
"
|
grep
\"
id
\"
:
>
/dev/null
;
then
...
...
@@ -56,8 +54,6 @@ dns_me_add() {
return
1
fi
fi
_err
"Add txt record error."
return
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