]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
Shellcheck'd
authorpeterkelm <info@peterkelm.com>
Thu, 31 Oct 2019 08:03:35 +0000 (09:03 +0100)
committerGitHub <noreply@github.com>
Thu, 31 Oct 2019 08:03:35 +0000 (09:03 +0100)
dnsapi/dns_variomedia.sh

index ecc9ea4c959318a2f6e593542a6bc00db79cf7d6..729cda5ef7ce0c0738046f487bf3fefffe238263 100644 (file)
@@ -69,7 +69,7 @@ dns_variomedia_rm() {
     return 1
   fi
 
-  _record_id="$(echo $response | cut -d '[' -f2 | cut -d']' -f1 | sed 's/},[ \t]*{/\},§\{/g' | tr § '\n' | grep "$_sub_domain" | grep "$txtvalue" | sed 's/^{//;s/}[,]?$//' | tr , '\n' | tr -d '\"' | grep ^id | cut -d : -f2 | tr -d ' ')"
+  _record_id="$(echo "$response" | cut -d '[' -f2 | cut -d']' -f1 | sed 's/},[ \t]*{/\},§\{/g' | tr § '\n' | grep "$_sub_domain" | grep "$txtvalue" | sed 's/^{//;s/}[,]?$//' | tr , '\n' | tr -d '\"' | grep ^id | cut -d : -f2 | tr -d ' ')"
   _debug _record_id "$_record_id"
   if [ "$_record_id" ]; then
     _info "Successfully retrieved the record id for ACME challenge."