From d583de8c2ee8ff36cb78bc1a2bfe5f25bf1c2a41 Mon Sep 17 00:00:00 2001 From: baerengraben Date: Fri, 24 Jan 2025 16:56:22 +0000 Subject: [PATCH] shfmt update --- dnsapi/dns_hosttech.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dnsapi/dns_hosttech.sh b/dnsapi/dns_hosttech.sh index c38abc39..c2574041 100644 --- a/dnsapi/dns_hosttech.sh +++ b/dnsapi/dns_hosttech.sh @@ -131,11 +131,11 @@ _get_zoneid() { if _hosttech_rest GET "zones?query=${_domain}"; then if [ "$(echo "$_response" | _egrep_o '"name":"[^"]*' | cut -d'"' -f4)" = "${_domain}" ]; then - # Get the id of the zone in question - _zoneid="$(echo "$_response" | _egrep_o '"id":[0-9]*' | cut -d':' -f2)" - if [ -z "$_zoneid" ]; then - return 1 - fi + # Get the id of the zone in question + _zoneid="$(echo "$_response" | _egrep_o '"id":[0-9]*' | cut -d':' -f2)" + if [ -z "$_zoneid" ]; then + return 1 + fi return 0 fi else