stilez
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
dnsapi/dns_pleskxml.sh
|
@ -249,7 +249,7 @@ _call_api() { |
|
|
errtext="$(_value "$pleskxml_prettyprint_result" \ |
|
|
errtext="$(_value "$pleskxml_prettyprint_result" \ |
|
|
| grep -E "(<status>|<errcode>|<errtext>)" \ |
|
|
| grep -E "(<status>|<errcode>|<errtext>)" \ |
|
|
| sed -E 's/^<(status|errcode|errtext)>/\1: /' \ |
|
|
| sed -E 's/^<(status|errcode|errtext)>/\1: /' \ |
|
|
| sed -E 's/(^[[:space:]]+|<\/(status|errcode|errtext)>$)//g' \ |
|
|
|
|
|
|
|
|
| sed -E 's/(^[[:space:]]+|<\/(status|errcode|errtext)>$)//g' |
|
|
)" |
|
|
)" |
|
|
|
|
|
|
|
|
elif ! _value "$statuslines" | grep -q '<status>ok</status>'; then |
|
|
elif ! _value "$statuslines" | grep -q '<status>ok</status>'; then |
|
|