mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-17 11:42:44 +00:00
fix shellcheck and shfmt errors
This commit is contained in:
parent
1aac843382
commit
6f2f5999fa
@ -21,12 +21,12 @@ dns_burp_add() {
|
||||
_saveaccountconf_mutable BURP_COLLABORATOR_CONFIG "$BURP_COLLABORATOR_CONFIG"
|
||||
_saveaccountconf_mutable BURP_COLLABORATOR_RESTART "$BURP_COLLABORATOR_RESTART"
|
||||
|
||||
json=$(cat $BURP_COLLABORATOR_CONFIG)
|
||||
json=$(cat "$BURP_COLLABORATOR_CONFIG")
|
||||
json=$(echo "$json" | jq ".customDnsRecords += [{\"label\": \"_acme-challenge\", \"record\": \"$txtvalue\", \"type\": \"TXT\", \"ttl\": 60}]")
|
||||
|
||||
echo "$json" >$BURP_COLLABORATOR_CONFIG
|
||||
echo "$json" >"$BURP_COLLABORATOR_CONFIG"
|
||||
|
||||
eval $BURP_COLLABORATOR_RESTART
|
||||
eval "$BURP_COLLABORATOR_RESTART"
|
||||
|
||||
return 0
|
||||
}
|
||||
@ -37,13 +37,12 @@ dns_burp_rm() {
|
||||
txtvalue=$2
|
||||
_info "Using burp"
|
||||
|
||||
json=$(cat $BURP_COLLABORATOR_CONFIG)
|
||||
json=$(cat "$BURP_COLLABORATOR_CONFIG")
|
||||
json=$(echo "$json" | jq "del(.customDnsRecords[] | select(.label == \"_acme-challenge\"))")
|
||||
|
||||
echo "$json" >$BURP_COLLABORATOR_CONFIG
|
||||
echo "$json" >"$BURP_COLLABORATOR_CONFIG"
|
||||
|
||||
eval $BURP_COLLABORATOR_RESTART
|
||||
eval "$BURP_COLLABORATOR_RESTART"
|
||||
}
|
||||
|
||||
#################### Private functions below ##################################
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user