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

fix compatible for `sh`

parent eac18b1c
......@@ -50,7 +50,7 @@ _debug() {
}
_debug2() {
if [[ "$DEBUG" -ge "2" ]] ; then
if [[ "$DEBUG" ]] && [[ "$DEBUG" -ge "2" ]] ; then
_debug "$@"
fi
return
......@@ -735,13 +735,13 @@ _initpath() {
HTTP_HEADER="$LE_WORKING_DIR/http.header"
WGET="wget -q"
if [[ "$DEBUG" -ge "2" ]] ; then
if [[ "$DEBUG" ]] && [[ "$DEBUG" -ge "2" ]] ; then
WGET="$WGET -d "
fi
dp="$LE_WORKING_DIR/curl.dump"
CURL="curl -L --silent"
if [[ "$DEBUG" -ge "2" ]] ; then
if [[ "$DEBUG" ]] && [[ "$DEBUG" -ge "2" ]] ; then
CURL="$CURL -L --trace-ascii $dp "
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