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
fc3a1817
Commit
fc3a1817
authored
Jan 27, 2020
by
neilpang
Browse files
move the error message
parent
9541ea6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
fc3a1817
...
...
@@ -4121,7 +4121,6 @@ $_authorizations_map"
_debug entry
"
$entry
"
keyauthorization
=
""
if
[
-z
"
$entry
"
]
;
then
_err
"Error, can not get domain token entry
$d
for
$vtype
"
if
!
_startswith
"
$d
"
'*.'
;
then
_debug
"Not a wildcard domain, lets check whether the validation is already valid."
if
echo
"
$response
"
|
grep
'"status":"valid"'
>
/dev/null 2>&1
;
then
...
...
@@ -4131,6 +4130,7 @@ $_authorizations_map"
fi
fi
if
[
-z
"
$keyauthorization
"
]
;
then
_err
"Error, can not get domain token entry
$d
for
$vtype
"
_supported_vtypes
=
"
$(
echo
"
$response
"
| _egrep_o
"
\"
challenges
\"
:
\[
[^]]*]"
|
tr
'{'
"
\n
"
|
grep type
|
cut
-d
'"'
-f
4 |
tr
"
\n
"
' '
)
"
if
[
"
$_supported_vtypes
"
]
;
then
_err
"The supported validation types are:
$_supported_vtypes
, but you specified:
$vtype
"
...
...
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