mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-01 14:12:53 +00:00
Fix formatting according to Shellcheck 3/3
This commit is contained in:
parent
0bea2e2b94
commit
fb457968ec
@ -103,7 +103,8 @@ _clean_records() {
|
|||||||
_debug2 'Raw ' "$response"
|
_debug2 'Raw ' "$response"
|
||||||
response="$(
|
response="$(
|
||||||
printf -- '%s' "$response"
|
printf -- '%s' "$response"
|
||||||
\ | sed 's/^\(.*TXT":"\)\([^,}]*\)\(.*\)$/\2/;s/.$//;s/\\"/"/g;s/\\n/\n/g')"
|
\ | sed 's/^\(.*TXT":"\)\([^,}]*\)\(.*\)$/\2/;s/.$//;s/\\"/"/g;s/\\n/\n/g'
|
||||||
|
)"
|
||||||
_debug2 'Clean' "$response"
|
_debug2 'Clean' "$response"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -115,7 +116,8 @@ _dns() {
|
|||||||
payload="$(printf -- '%s' "$2" | _url_encode)"
|
payload="$(printf -- '%s' "$2" | _url_encode)"
|
||||||
url="$(
|
url="$(
|
||||||
printf -- '%s%s' "$AF_URL_DNS" "$domain"
|
printf -- '%s%s' "$AF_URL_DNS" "$domain"
|
||||||
\ | sed 's/{\*}/'"$(printf -- '%s' "$action" | _lower_case)"'/')"
|
\ | sed 's/{\*}/'"$(printf -- '%s' "$action" | _lower_case)"'/'
|
||||||
|
)"
|
||||||
|
|
||||||
if [ "$action" = 'SET' ]; then
|
if [ "$action" = 'SET' ]; then
|
||||||
_debug2 'Payload' "$payload"
|
_debug2 'Payload' "$payload"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user