Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
687cfcc2
Commit
687cfcc2
authored
Jun 25, 2016
by
neil
Browse files
minor add error code
parent
c8e9a31e
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
687cfcc2
...
...
@@ -643,6 +643,9 @@ _post() {
response
=
"
$(
$_CURL
--user-agent
"
$USER_AGENT
"
-X
$httpmethod
-H
"
$_H1
"
-H
"
$_H2
"
-H
"
$_H3
"
-H
"
$_H4
"
--data
"
$body
"
"
$url
"
)
"
fi
_ret
=
"
$?
"
if
[
"
$_ret
"
!=
"0"
]
;
then
_err
"Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code:
$_ret
"
fi
else
_debug
"WGET"
"
$WGET
"
if
[
"
$needbase64
"
]
;
then
...
...
@@ -659,6 +662,9 @@ _post() {
fi
fi
_ret
=
"
$?
"
if
[
"
$_ret
"
!=
"0"
]
;
then
_err
"Please refer to https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html for error code:
$_ret
"
fi
_sed_i
"s/^ *//g"
"
$HTTP_HEADER
"
fi
_debug
"_ret"
"
$_ret
"
...
...
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