From 8f7ad693a843fca054a80c6556e963b7fb9e4c62 Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 16 Apr 2016 20:02:41 +0800 Subject: [PATCH] fix compatible for `sh` --- acme.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acme.sh b/acme.sh index 95870ce..ba516bc 100755 --- a/acme.sh +++ b/acme.sh @@ -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