]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
fix compatible to alpine linux
authorneil <git@byneil.com>
Thu, 10 Mar 2016 15:43:03 +0000 (23:43 +0800)
committerneil <git@byneil.com>
Thu, 10 Mar 2016 15:43:03 +0000 (23:43 +0800)
le.sh

diff --git a/le.sh b/le.sh
index 71ed1677ddffac508cbb4f2327a6293e96c793fb..619f658fae0b0f17f4e252a8a62594158cfda1e1 100755 (executable)
--- a/le.sh
+++ b/le.sh
@@ -696,7 +696,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 '"')"