mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 14:41:40 +00:00
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.
This commit is contained in:
parent
90dda23f33
commit
7d91e35f5f
2
le.sh
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user