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
1a6305c9
Commit
1a6305c9
authored
Jul 09, 2016
by
neil
Committed by
GitHub
Jul 09, 2016
Browse files
Merge pull request #236 from tohojo/regexp-escape
Add missing escape in regular expression.
parents
bdbf323f
32dfc387
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
1a6305c9
...
@@ -1726,7 +1726,7 @@ issue() {
...
@@ -1726,7 +1726,7 @@ issue() {
fi
fi
if
[
"
$status
"
=
"invalid"
]
;
then
if
[
"
$status
"
=
"invalid"
]
;
then
error
=
"
$(
echo
$response
|
tr
-d
"
\r\n
"
| egrep
-o
'"error":{[^}]*}'
)
"
error
=
"
$(
echo
$response
|
tr
-d
"
\r\n
"
| egrep
-o
'"error":
\
{[^}]*}'
)
"
_debug2 error
"
$error
"
_debug2 error
"
$error
"
errordetail
=
"
$(
echo
$error
|
grep
-o
'"detail": *"[^"]*"'
|
cut
-d
'"'
-f
4
)
"
errordetail
=
"
$(
echo
$error
|
grep
-o
'"detail": *"[^"]*"'
|
cut
-d
'"'
-f
4
)
"
_debug2 errordetail
"
$errordetail
"
_debug2 errordetail
"
$errordetail
"
...
...
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