From 32dfc387c888ae9173302c868b07572a124a8706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= Date: Fri, 8 Jul 2016 15:42:21 +0200 Subject: [PATCH] Add missing escape in regular expression. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There was a missing escape of a { character in one of the regular expressions passed to grep. This adds that. Signed-off-by: Toke Høiland-Jørgensen --- acme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 5b75d153..47663329 100755 --- a/acme.sh +++ b/acme.sh @@ -1725,7 +1725,7 @@ issue() { fi if [ "$status" = "invalid" ] ; then - error="$(echo $response | tr -d "\r\n" | 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"