Commit 7d91e35f authored by Aaron Bartell's avatar Aaron Bartell
Browse files

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.
parent 90dda23f
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment