mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-10-31 19:41:45 +00:00
fix compatible for sh
This commit is contained in:
parent
eac18b1c99
commit
8f7ad693a8
6
acme.sh
6
acme.sh
@ -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() {
|
|||||||
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user