vetted by shfmt

This commit is contained in:
Ed Lynes 2020-08-26 18:07:46 -04:00
parent a0bf29e600
commit 281ee1a853

View File

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