Browse Source

fix CI reported problems for shellcheck and shfmt

fix minor problems reported by shellcheck and shfmt
pull/5172/head
Vinicius Mello 7 months ago
parent
commit
2f8fb360aa
  1. 4
      dnsapi/dns_linode_v4.sh

4
dnsapi/dns_linode_v4.sh

@ -126,7 +126,7 @@ _Linode_API() {
# _domain=domain.com # _domain=domain.com
# _domain_id=12345 # _domain_id=12345
_get_root() { _get_root() {
local full_host_str="$1"
full_host_str="$1"
i=2 i=2
p=1 p=1
@ -140,7 +140,7 @@ _get_root() {
return 1 return 1
fi fi
_debug "Querying Linode APIv4 for hosted zone: $h"
_debug "Querying Linode APIv4 for hosted zone: $h"
if _H4="X-Filter: {\"domain\":\"$h\"}" _rest GET; then if _H4="X-Filter: {\"domain\":\"$h\"}" _rest GET; then
_debug "Got response from API: $response" _debug "Got response from API: $response"
response="$(echo "$response" | tr -d "\n" | tr '{' "|" | sed 's/|/&{/g' | tr "|" "\n")" response="$(echo "$response" | tr -d "\n" | tr '{' "|" | sed 's/|/&{/g' | tr "|" "\n")"

Loading…
Cancel
Save