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
58c2c701
Commit
58c2c701
authored
Apr 29, 2020
by
neil
Browse files
fix
https://github.com/acmesh-official/acme.sh/issues/2888
parent
ad9f488d
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_cf.sh
View file @
58c2c701
...
...
@@ -130,7 +130,7 @@ dns_cf_rm() {
_err
"Delete record error."
return
1
fi
_contains
"
$response
"
'
"success":true
'
echo
"
$response
"
|
tr
-d
" "
|
grep
\
"
success
\
"
:true
>
/dev/null
fi
}
...
...
@@ -151,7 +151,7 @@ _get_root() {
if
!
_cf_rest GET
"zones/
$CF_Zone_ID
"
;
then
return
1
else
if
_contains
"
$response
"
'
"success":true
'
;
then
if
echo
"
$response
"
|
tr
-d
" "
|
grep
\
"
success
\
"
:true
>
/dev/null
;
then
_domain
=
$(
echo
"
$response
"
| _egrep_o
"
\"
name
\"
: *
\"
[^
\"
]*
\"
"
|
cut
-d
:
-f
2 |
tr
-d
\"
| _head_n 1 |
tr
-d
" "
)
if
[
"
$_domain
"
]
;
then
_cutlength
=
$((${#
domain
}
-
${#
_domain
}
-
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