Browse Source

Remove shcheck flagged variable checks - again

pull/3926/head
John B 3 years ago
parent
commit
570f621e2d
  1. 13
      dnsapi/dns_japi.sh

13
dnsapi/dns_japi.sh

@ -49,9 +49,9 @@ dns_japi_add() {
_debug "Passed domain to function: $fulldomain" _debug "Passed domain to function: $fulldomain"
_debug "Full Challenge domain: $fullchallengedomain" _debug "Full Challenge domain: $fullchallengedomain"
_debug txtvalue "$txtvalue" _debug txtvalue "$txtvalue"
_debug _domain_id "$_domain_id"
_debug _sub_domain "$_sub_domain"
_debug _domain "$_domain"
#_debug _domain_id "$_domain_id"
#_debug _sub_domain "$_sub_domain"
#_debug _domain "$_domain"
#_err "Not implemented!" #_err "Not implemented!"
response="$(_post "{\"domain\":\"${_domain}\",\"update\": {\"type\":\"TXT\",\"name\":\"$fullchallengedomain\",\"content\":\"$txtvalue\",\"ttl\":0}}" $JAPIendpoint "" POST "application/json")" response="$(_post "{\"domain\":\"${_domain}\",\"update\": {\"type\":\"TXT\",\"name\":\"$fullchallengedomain\",\"content\":\"$txtvalue\",\"ttl\":0}}" $JAPIendpoint "" POST "application/json")"
@ -74,7 +74,6 @@ dns_japi_rm() {
_debug "Full Challenge Domain is: $fullchallengedomain" _debug "Full Challenge Domain is: $fullchallengedomain"
JAPI_apikey="${JAPI_apikey:-$(_readaccountconf_mutable JAPI_apikey)}" JAPI_apikey="${JAPI_apikey:-$(_readaccountconf_mutable JAPI_apikey)}"
#Set H1,H2 headers with DNS Exit API key #Set H1,H2 headers with DNS Exit API key
$passedDomain=$_domain
export _H1="Content-Type: application/json" export _H1="Content-Type: application/json"
export _H2="apikey: $JAPI_apikey" export _H2="apikey: $JAPI_apikey"
#domainUpdate=$domain #domainUpdate=$domain
@ -93,9 +92,9 @@ dns_japi_rm() {
_debug "Passed domain to function: $fulldomain" _debug "Passed domain to function: $fulldomain"
_debug "Full Challenge domain: $fullchallengedomain" _debug "Full Challenge domain: $fullchallengedomain"
_debug txtvalue "$txtvalue" _debug txtvalue "$txtvalue"
_debug _domain_id "$_domain_id"
_debug _sub_domain "$_sub_domain"
_debug _domain "$_domain"
#_debug _domain_id "$_domain_id"
#_debug _sub_domain "$_sub_domain"
#_debug _domain "$_domain"
#_err "Not implemented!" #_err "Not implemented!"
response="$(_post "{\"domain\":\"${_domain}\",\"delete\": {\"type\":\"TXT\",\"name\":\"$fullchallengedomain\",\"content\":\"$txtvalue\",\"ttl\":0}}" $JAPIendpoint "" POST "application/json")" response="$(_post "{\"domain\":\"${_domain}\",\"delete\": {\"type\":\"TXT\",\"name\":\"$fullchallengedomain\",\"content\":\"$txtvalue\",\"ttl\":0}}" $JAPIendpoint "" POST "application/json")"

Loading…
Cancel
Save