]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
satisfy shellcheck
authorlinux-insideDE <39219399+linux-insideDE@users.noreply.github.com>
Wed, 16 May 2018 20:07:44 +0000 (22:07 +0200)
committerGitHub <noreply@github.com>
Wed, 16 May 2018 20:07:44 +0000 (22:07 +0200)
dnsapi/dns_netcup.sh

index 7e52dd9f9119bb519e20a199c9956396996ad54d..755d22b964a8f85c8cd1d24e741289dd6f058126 100644 (file)
@@ -1,6 +1,4 @@
 #!/usr/bin/env sh
-
-
 #developed by linux-insideDE
 
 NC_Apikey="${NC_Apikey:-$(_readaccountconf_mutable NC_Apikey)}"
@@ -154,7 +152,8 @@ logout() {
 }
 getRecords() { 
        tmp2=$(_post "{\"action\": \"infoDnsRecords\", \"param\": {\"apikey\": \"$NC_Apikey\", \"apisessionid\": \"$sid\", \"customernumber\": \"$NC_CID\", \"domainname\": \"$1\"}}" "$end" "" "POST")
-       echo $(echo "$tmp2" | sed 's/\[//g' | sed 's/\]//g' | sed 's/{\"serverrequestid\".*\"dnsrecords\"://g' | sed 's/},{/};{/g' | sed 's/{//g' | sed 's/}//g')
+       out=$(echo "$tmp2" | sed 's/\[//g' | sed 's/\]//g' | sed 's/{\"serverrequestid\".*\"dnsrecords\"://g' | sed 's/},{/};{/g' | sed 's/{//g' | sed 's/}//g')
+       echo "$out"
        _debug "$tmp2"
        if [ "$(_getfield "$msg" "4" | sed s/\"status\":\"//g | sed s/\"//g)" != "success" ]; then
                _err "$msg"