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
8f7ad693
Commit
8f7ad693
authored
Apr 16, 2016
by
neil
Browse files
fix compatible for `sh`
parent
eac18b1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
8f7ad693
...
@@ -50,7 +50,7 @@ _debug() {
...
@@ -50,7 +50,7 @@ _debug() {
}
}
_debug2
()
{
_debug2
()
{
if
[[
"
$DEBUG
"
-ge
"2"
]]
;
then
if
[[
"
$DEBUG
"
]]
&&
[[
"
$DEBUG
"
-ge
"2"
]]
;
then
_debug
"
$@
"
_debug
"
$@
"
fi
fi
return
return
...
@@ -735,13 +735,13 @@ _initpath() {
...
@@ -735,13 +735,13 @@ _initpath() {
HTTP_HEADER
=
"
$LE_WORKING_DIR
/http.header"
HTTP_HEADER
=
"
$LE_WORKING_DIR
/http.header"
WGET
=
"wget -q"
WGET
=
"wget -q"
if
[[
"
$DEBUG
"
-ge
"2"
]]
;
then
if
[[
"
$DEBUG
"
]]
&&
[[
"
$DEBUG
"
-ge
"2"
]]
;
then
WGET
=
"
$WGET
-d "
WGET
=
"
$WGET
-d "
fi
fi
dp
=
"
$LE_WORKING_DIR
/curl.dump"
dp
=
"
$LE_WORKING_DIR
/curl.dump"
CURL
=
"curl -L --silent"
CURL
=
"curl -L --silent"
if
[[
"
$DEBUG
"
-ge
"2"
]]
;
then
if
[[
"
$DEBUG
"
]]
&&
[[
"
$DEBUG
"
-ge
"2"
]]
;
then
CURL
=
"
$CURL
-L --trace-ascii
$dp
"
CURL
=
"
$CURL
-L --trace-ascii
$dp
"
fi
fi
...
...
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