From 6e180343332631adc51557842e7a4f481fe4875b Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 30 May 2016 22:06:30 +0800 Subject: [PATCH] fix error message. --- acme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index d5061c7..a1deb92 100755 --- a/acme.sh +++ b/acme.sh @@ -1449,7 +1449,7 @@ issue() { fi if [ "$status" = "invalid" ] ; then - error="$(echo $response | egrep -o '"error":{[^}]*}')" + error="$(echo $response | tr -d "\r\n" | egrep -o '"error":{[^}]*}')" _debug2 error "$error" errordetail="$(echo $error | grep -o '"detail": *"[^"]*"' | cut -d '"' -f 4)" _debug2 errordetail "$errordetail"