Fix message cutting in dns_ali.sh
This commit is contained in:
parent
18df3dc07a
commit
77b3f83824
@ -89,7 +89,7 @@ _ali_rest() {
|
|||||||
|
|
||||||
_debug2 response "$response"
|
_debug2 response "$response"
|
||||||
if [ -z "$2" ]; then
|
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
|
if [ "$message" ]; then
|
||||||
_err "$message"
|
_err "$message"
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user