Browse Source

Fix message cutting in dns_ali.sh

pull/3370/head
acooler15 4 years ago
parent
commit
77b3f83824
  1. 2
      dnsapi/dns_ali.sh

2
dnsapi/dns_ali.sh

@ -89,7 +89,7 @@ _ali_rest() {
_debug2 response "$response"
if [ -z "$2" ]; then
message="$(echo "$response" | _egrep_o "\"Message\":\"[^\"]*\"" | cut -d : -f 2 | tr -d \")"
message="$(echo "$response" | _egrep_o "\"Message\":\"[^\"]*\"" | cut -d : -f 2- | tr -d \")"
if [ "$message" ]; then
_err "$message"
return 1

Loading…
Cancel
Save