From c835ab025a021c5dbbf04dbe2acbe25baecea355 Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 30 May 2016 21:28:03 +0800 Subject: [PATCH] add more log --- acme.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index d239375b..66feabab 100755 --- a/acme.sh +++ b/acme.sh @@ -1431,6 +1431,7 @@ issue() { sleep 5 _debug "checking" response="$(_get $uri | _normalizeJson )" + _debug2 response "$response" if [ "$?" != "0" ] ; then _err "$d:Verify error:$response" _clearupwebbroot "$_currentRoot" "$removelevel" "$token" @@ -1448,7 +1449,7 @@ issue() { fi if [ "$status" = "invalid" ] ; then - error=$(echo $response | egrep -o '"error":{[^}]*}' | grep -o '"detail":"[^"]*"' | cut -d '"' -f 4) + error="$(echo $response | egrep -o '"error":{[^}]*}' | grep -o '"detail":"[^"]*"' | cut -d '"' -f 4)" _err "$d:Verify error:$error" _clearupwebbroot "$_currentRoot" "$removelevel" "$token" _clearup