From bb7cdb318567817fe5df60c12cfcec673b368f37 Mon Sep 17 00:00:00 2001 From: Florian Pfitzer Date: Mon, 14 Jun 2021 10:15:01 +0200 Subject: [PATCH] fix ci error --- dnsapi/dns_burp.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dnsapi/dns_burp.sh b/dnsapi/dns_burp.sh index c8685039..62815062 100644 --- a/dnsapi/dns_burp.sh +++ b/dnsapi/dns_burp.sh @@ -23,9 +23,9 @@ dns_burp_add() { _saveaccountconf_mutable BURP_COLLABORATOR_RESTART "$BURP_COLLABORATOR_RESTART" json=$(cat $BURP_COLLABORATOR_CONFIG) - json=$(echo $json|jq ".customDnsRecords += [{\"label\": \"_acme-challenge\", \"record\": \"$txtvalue\", \"type\": \"TXT\", \"ttl\": 60}]") + 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 @@ -35,14 +35,13 @@ dns_burp_add() { #Usage: fulldomain txtvalue #Remove the txt record after validation. dns_burp_rm() { - fulldomain=$1 txtvalue=$2 _info "Using burp" json=$(cat $BURP_COLLABORATOR_CONFIG) - json=$(echo $json|jq "del(.customDnsRecords[] | select(.label == \"_acme-challenge\"))") + json=$(echo "$json" | jq "del(.customDnsRecords[] | select(.label == \"_acme-challenge\"))") - echo "$json" > $BURP_COLLABORATOR_CONFIG + echo "$json" >$BURP_COLLABORATOR_CONFIG eval $BURP_COLLABORATOR_RESTART }