Formatting

using shfmt to format the code
This commit is contained in:
An | Anton Röhm
2025-09-07 17:14:40 +02:00
committed by An
parent 31d7264583
commit 5aa964cde9

View File

@@ -90,11 +90,11 @@ _get_root() {
response="$(_get "$NANELO_API$NANELO_TOKEN/dns/getzones")" || return 1 response="$(_get "$NANELO_API$NANELO_TOKEN/dns/getzones")" || return 1
# Extract "zones" array into space-separated list # Extract "zones" array into space-separated list
zones=$(echo "$response" \ zones=$(echo "$response" |
| tr -d ' \n' \ tr -d ' \n' |
| sed -n 's/.*"zones":\[\([^]]*\)\].*/\1/p' \ sed -n 's/.*"zones":\[\([^]]*\)\].*/\1/p' |
| tr -d '"' \ tr -d '"' |
| tr , ' ') tr , ' ')
_debug zones "$zones" _debug zones "$zones"
bestzone="" bestzone=""