From 64c1efd81960efd24deba293e212ccce5cfaf2e8 Mon Sep 17 00:00:00 2001 From: Yuri S Date: Mon, 1 Jul 2019 13:33:52 +0500 Subject: [PATCH] fix shellcheck --- dnsapi/dns_vultr.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dnsapi/dns_vultr.sh b/dnsapi/dns_vultr.sh index 25127dd2..3c9dc447 100644 --- a/dnsapi/dns_vultr.sh +++ b/dnsapi/dns_vultr.sh @@ -43,7 +43,7 @@ dns_vultr_add() { return 1 fi - _debug2 _response "$_response" + _debug2 _response "$response" return 0 } @@ -92,7 +92,7 @@ dns_vultr_rm() { return 1 fi - _debug2 _response "$_response" + _debug2 _response "$response" return 0 } @@ -120,6 +120,7 @@ _get_root() { if printf "%s\n" "$response" | grep '^\[.*\]' >/dev/null; then if _contains "$response" "\"domain\":\"$_domain\""; then _sub_domain="$(echo "$fulldomain" | sed "s/\\.$_domain\$//")" + _domain=$_domain return 0 else _err 'Invalid domain'