]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
fix deactivate function
authorneilpang <github@byneil.com>
Fri, 9 Dec 2016 14:20:38 +0000 (22:20 +0800)
committerneilpang <github@byneil.com>
Fri, 9 Dec 2016 14:20:38 +0000 (22:20 +0800)
acme.sh

diff --git a/acme.sh b/acme.sh
index 5e672a59e7530a6988f2b6c839014911fe5862e9..dc3ac7f0aca74bcb904149d23ee31e7e780f1cb5 100755 (executable)
--- a/acme.sh
+++ b/acme.sh
@@ -3469,7 +3469,7 @@ _deactivate() {
       return 1
     fi
 
-    entry="$(printf "%s\n" "$response" | _egrep_o '{"type":".*","status":"valid","uri"[^}]*')"
+    entry="$(printf "%s\n" "$response" | _egrep_o '{"type":"[^"]*","status":"valid","uri"[^}]*')"
     _debug entry "$entry"
 
     if [ -z "$entry" ]; then