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

@ -102,7 +102,7 @@ _get_root() {
return 1
fi
if printf $response | grep \"name\":\"$h\" ; then
if printf $response | grep \"name\":\"$h\" >/dev/null ; then
_domain_id=$(printf "$response" | grep -o \"id\":\"[^\"]*\" | head -1 | cut -d : -f 2 | tr -d \")
if [ "$_domain_id" ] ; then
_sub_domain=$(printf $domain | cut -d . -f 1-$p)