mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-04-30 08:42:44 +00:00
fix CI reported problems for shellcheck and shfmt
fix minor problems reported by shellcheck and shfmt
This commit is contained in:
parent
05ec3922f1
commit
2f8fb360aa
@ -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…
x
Reference in New Issue
Block a user