mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 15:42:45 +00:00
Better way to catch success or failure
This commit is contained in:
parent
70ed6b96d1
commit
7e1d9a2872
@ -139,7 +139,7 @@ _get_root() {
|
||||
}
|
||||
|
||||
_successful_update() {
|
||||
if (echo "$_result" | grep -q 'newserial'); then return 0; fi
|
||||
if (echo "$_result" | egrep -o 'data":\[[^]]*]' | grep -q '"newserial":null'); then return 1; fi
|
||||
return 1
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user