Commit 8f7ad693 authored by neil's avatar neil
Browse files

fix compatible for `sh`

parent eac18b1c
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment