Browse Source

vetted by shfmt

pull/3136/head
Ed Lynes 4 years ago
parent
commit
281ee1a853
  1. 11
      dnsapi/dns_edgedns.sh

11
dnsapi/dns_edgedns.sh

@ -73,7 +73,8 @@ dns_edgedns_add() {
fi
_txt_val=""
while [ "$_txt_val" != "$rdlist" ] && [ "${rdlist}" ]; do
_txt_val="${rdlist%%,*}"; rdlist="${rdlist#*,}"
_txt_val="${rdlist%%,*}"
rdlist="${rdlist#*,}"
rdata="${rdata},\"${_txt_val}\""
done
fi
@ -139,7 +140,8 @@ dns_edgedns_rm() {
rdata=""
_txt_val=""
while [ "$_txt_val" != "$rdlist" ] && [ "$rdlist" ]; do
_txt_val="${rdlist%%,*}"; rdlist="${rdlist#*,}"
_txt_val="${rdlist%%,*}"
rdlist="${rdlist#*,}"
_debug3 "_txt_val" "$_txt_val"
_debug3 "txtvalue" "$txtvalue"
if ! _contains "$_txt_val" "$txtvalue"; then
@ -296,7 +298,8 @@ _edgedns_rest() {
work_header="${_edgedns_headers}${tab}"
_debug3 "work_header" "$work_header"
while [ "$work_header" ]; do
entry="${work_header%%\\t*}"; work_header="${work_header#*\\t}"
entry="${work_header%%\\t*}"
work_header="${work_header#*\\t}"
export "$(printf "_H%s=%s" "$hdr_indx" "$entry")"
_debug2 "Request Header " "$entry"
hdr_indx=$((hdr_indx + 1))
@ -444,5 +447,3 @@ _edgedns_base64_sha256() {
# filepath=$1
# section=$2
#}
Loading…
Cancel
Save