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

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