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
057c95bd
Commit
057c95bd
authored
Dec 23, 2022
by
PMExtra
Browse files
improve `wget --content-on-error` condition
parent
0cafc00c
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
057c95bd
...
@@ -1877,11 +1877,11 @@ _inithttp() {
...
@@ -1877,11 +1877,11 @@ _inithttp() {
elif
[
"
$CA_BUNDLE
"
]
;
then
elif
[
"
$CA_BUNDLE
"
]
;
then
_ACME_WGET
=
"
$_ACME_WGET
--ca-certificate=
$CA_BUNDLE
"
_ACME_WGET
=
"
$_ACME_WGET
--ca-certificate=
$CA_BUNDLE
"
fi
fi
fi
#from wget 1.14: do not skip body on 404 error
#from wget 1.14: do not skip body on 404 error
if
[
"
$_ACME_WGET
"
]
&&
_contains
"
$(
$_ACME_WGET
--help
2>&1
)
"
"--content-on-error"
;
then
if
_contains
"
$(
wget
--help
2>&1
)
"
"--content-on-error"
;
then
_ACME_WGET
=
"
$_ACME_WGET
--content-on-error "
_ACME_WGET
=
"
$_ACME_WGET
--content-on-error "
fi
fi
fi
__HTTP_INITIALIZED
=
1
__HTTP_INITIALIZED
=
1
...
...
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