mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-02 10:39:37 +08:00
Fix formatting according to Shellcheck 2/2
This commit is contained in:
@@ -101,8 +101,9 @@ _clean_records() {
|
||||
# from '\"' & turn '\n' into real LF characters.
|
||||
# Yup, awful API to use - but that's all we got to get this working, so... ;)
|
||||
_debug2 'Raw ' "$response"
|
||||
response="$(printf -- '%s' "$response"
|
||||
\ | sed 's/^\(.*TXT":"\)\([^,}]*\)\(.*\)$/\2/;s/.$//;s/\\"/"/g;s/\\n/\n/g')"
|
||||
response="$(
|
||||
printf -- '%s' "$response"
|
||||
\ | sed 's/^\(.*TXT":"\)\([^,}]*\)\(.*\)$/\2/;s/.$//;s/\\"/"/g;s/\\n/\n/g')"
|
||||
_debug2 'Clean' "$response"
|
||||
}
|
||||
|
||||
@@ -112,8 +113,9 @@ _clean_records() {
|
||||
_dns() {
|
||||
action="$1"
|
||||
payload="$(printf -- '%s' "$2" | _url_encode)"
|
||||
url="$(printf -- '%s%s' "$AF_URL_DNS" "$domain"
|
||||
\ | sed 's/{\*}/'"$(printf -- '%s' "$action" | _lower_case)"'/')"
|
||||
url="$(
|
||||
printf -- '%s%s' "$AF_URL_DNS" "$domain"
|
||||
\ | sed 's/{\*}/'"$(printf -- '%s' "$action" | _lower_case)"'/')"
|
||||
|
||||
if [ "$action" = 'SET' ]; then
|
||||
_debug2 'Payload' "$payload"
|
||||
|
||||
Reference in New Issue
Block a user