From 7d91e35f5fa9120f4a426370314b0785899f2953 Mon Sep 17 00:00:00 2001 From: Aaron Bartell Date: Mon, 28 Mar 2016 13:06:43 -0500 Subject: [PATCH] Fix for parsing status in response The JSON `status` attribute wasn't being parsed and that caused the rest of the process to fail. I changed it to be like the other JSON parsing (i.e. `entry` and `token`) and it now works. --- le.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/le.sh b/le.sh index 3d41864..09097b3 100755 --- a/le.sh +++ b/le.sh @@ -1142,7 +1142,7 @@ issue() { return 1 fi - status=$(echo $response | egrep -o '"status":"[^"]+"' | cut -d : -f 2 | tr -d '"') + status=$(echo $response | egrep -o '"status":"[^"]*' | cut -d : -f 2 | tr -d '"') if [ "$status" == "valid" ] ; then _info "Success" _stopserver $serverproc