Browse Source

fix bash unuse vars

pull/3336/head
Vahid Fardi 5 years ago
parent
commit
8eb3562543
  1. 2
      dnsapi/dns_arvan.sh

2
dnsapi/dns_arvan.sh

@ -114,7 +114,7 @@ _get_root() {
return 1 return 1
fi fi
if _contains "$response" "\"domain\":\"$h\""; then if _contains "$response" "\"domain\":\"$h\""; then
_domain_id=$(echo "$response" | cut -d : -f 3 |cut -d , -f 1 | tr -d \")
_domain_id=$(echo "$response" | cut -d : -f 3 | cut -d , -f 1 | tr -d \")
if [ "$_domain_id" ]; then if [ "$_domain_id" ]; then
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p) _sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
_domain=$h _domain=$h

Loading…
Cancel
Save