Merge pull request #4331 from arnebjarne/dns_cpanel_newserial_fix

Dns cpanel newserial fix
This commit is contained in:
neil 2022-10-02 20:40:50 +08:00 committed by GitHub
commit e888c96591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -139,8 +139,8 @@ _get_root() {
}
_successful_update() {
if (echo "$_result" | grep -q 'newserial'); then return 0; fi
return 1
if (echo "$_result" | _egrep_o 'data":\[[^]]*]' | grep -q '"newserial":null'); then return 1; fi
return 0
}
_findentry() {