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
1a163243
Commit
1a163243
authored
Nov 22, 2020
by
neil
Browse files
fix
https://github.com/acmesh-official/acme.sh/issues/3259
parent
199ca77c
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_dpi.sh
View file @
1a163243
...
@@ -75,7 +75,7 @@ dns_dpi_rm() {
...
@@ -75,7 +75,7 @@ dns_dpi_rm() {
return
1
return
1
fi
fi
_contains
"
$response
"
"
Action completed
successful"
_contains
"
$response
"
"
Operation
successful"
}
}
...
@@ -93,7 +93,7 @@ add_record() {
...
@@ -93,7 +93,7 @@ add_record() {
return
1
return
1
fi
fi
_contains
"
$response
"
"
Action completed
successful"
||
_contains
"
$response
"
"Domain record already exists"
_contains
"
$response
"
"
Operation
successful"
||
_contains
"
$response
"
"Domain record already exists"
}
}
#################### Private functions below ##################################
#################### Private functions below ##################################
...
@@ -117,7 +117,7 @@ _get_root() {
...
@@ -117,7 +117,7 @@ _get_root() {
return
1
return
1
fi
fi
if
_contains
"
$response
"
"
Action completed
successful"
;
then
if
_contains
"
$response
"
"
Operation
successful"
;
then
_domain_id
=
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
"
\"
id
\"
:
\"
[^
\"
]*
\"
"
|
cut
-d
:
-f
2 |
tr
-d
\"
)
_domain_id
=
$(
printf
"%s
\n
"
"
$response
"
| _egrep_o
"
\"
id
\"
:
\"
[^
\"
]*
\"
"
|
cut
-d
:
-f
2 |
tr
-d
\"
)
_debug _domain_id
"
$_domain_id
"
_debug _domain_id
"
$_domain_id
"
if
[
"
$_domain_id
"
]
;
then
if
[
"
$_domain_id
"
]
;
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