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
81f27e90
Commit
81f27e90
authored
Oct 11, 2016
by
neil
Browse files
minor, get the error info, if it contains CRLF
parent
66990cf8
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
81f27e90
...
...
@@ -2435,7 +2435,7 @@ issue() {
fi
if
[
"
$status
"
=
"invalid"
]
;
then
error
=
"
$(
echo
"
$response
"
| _egrep_o
'"error":\{[^\}]*\}'
)
"
error
=
"
$(
echo
"
$response
"
|
tr
-d
"
\r\n
"
|
_egrep_o
'"error":\{[^\}]*\}'
)
"
_debug2 error
"
$error
"
errordetail
=
"
$(
echo
$error
| _egrep_o
'"detail": *"[^"]*"'
|
cut
-d
'"'
-f
4
)
"
_debug2 errordetail
"
$errordetail
"
...
...
@@ -2447,7 +2447,7 @@ issue() {
if
[
"
$DEBUG
"
]
;
then
if
[
"
$vtype
"
=
"
$VTYPE_HTTP
"
]
;
then
_debug
"Debug: get token url."
_get
"http://
$d
/.well-known/acme-challenge/
$token
"
_get
"http://
$d
/.well-known/acme-challenge/
$token
"
""
1
fi
fi
_clearupwebbroot
"
$_currentRoot
"
"
$removelevel
"
"
$token
"
...
...
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