fix error message.

This commit is contained in:
neil
2016-04-27 23:34:29 +08:00
parent ca2a96b3f3
commit 01f54558b9
4 changed files with 10 additions and 5 deletions

View File

@ -152,7 +152,7 @@ _get_root() {
return 1
fi
if printf "$response" | grep "Action completed successful" ; then
if printf "$response" | grep "Action completed successful" >/dev/null ; then
_domain_id=$(printf "$response" | grep -o \"id\":\"[^\"]*\" | cut -d : -f 2 | tr -d \")
_debug _domain_id "$_domain_id"
if [ "$_domain_id" ] ; then