shfmt update

pull/6209/head
baerengraben 2025-01-24 16:56:22 +00:00
parent 5a22a4f829
commit d583de8c2e
1 changed files with 5 additions and 5 deletions

View File

@ -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