fix shellcheck warnings

This commit is contained in:
neilpang
2016-11-12 00:50:44 +08:00
parent 5766250288
commit e440223b40
6 changed files with 11 additions and 13 deletions

View File

@ -150,7 +150,7 @@ _get_root() {
fi
if _contains "$response" "Action completed successful"; then
_domain_id=$(printf "%s\n" "$response" | _egrep_o \"id\":\"[^\"]*\" | cut -d : -f 2 | tr -d \")
_domain_id=$(printf "%s\n" "$response" | _egrep_o "\"id\":\"[^\"]*\"" | cut -d : -f 2 | tr -d \")
_debug _domain_id "$_domain_id"
if [ "$_domain_id" ]; then
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)