From: Frank Brehm Date: Mon, 6 Nov 2017 15:22:56 +0000 (+0100) Subject: Better calling curl X-Git-Tag: 0.1.2~120 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=96900d6edf078c53dfc1ef3acc8a8eba0843b26d;p=pixelpark%2Fadmin-tools.git Better calling curl --- diff --git a/bin/get-pdns-info b/bin/get-pdns-info index fef422d..8ec2fa3 100755 --- a/bin/get-pdns-info +++ b/bin/get-pdns-info @@ -238,8 +238,7 @@ show_zones() { local url="http://${PDNS_SERVER}:${API_PORT}/api/v1/servers/localhost/zones" debug "Calling URL '${url}' ..." - curl -H "X-API-Key: ${API_KEY}" "${url}" | jq . - #curl -H "X-API-Key: ${API_KEY}" "${url}" + curl --silent --show-error -H "X-API-Key: ${API_KEY}" "${url}" | jq --sort-keys . }