From 230234e701ce39bbc52915756d3e9bf56a464fc1 Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 24 Apr 2016 13:51:42 +0800 Subject: [PATCH] fix issue for openBSD --- acme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 78b29573..385589fc 100755 --- a/acme.sh +++ b/acme.sh @@ -1188,7 +1188,7 @@ issue() { return 1 fi - entry="$(printf $response | egrep -o '\{[^{]*"type":"'$vtype'"[^}]*')" + entry="$(printf "$response" | egrep -o '\{[^{]*"type":"'$vtype'"[^}]*')" _debug entry "$entry" token="$(printf "$entry" | egrep -o '"token":"[^"]*' | cut -d : -f 2 | tr -d '"')"