Fixed shfmt errors

This commit is contained in:
Peter Vos 2024-12-24 10:33:05 +01:00
parent 9b2873668f
commit 3aa8365e51

View File

@ -126,14 +126,14 @@ _get_root() {
p=1 p=1
while true; do while true; do
h=$(printf "%s" "$domain" | cut -d . -f $i-) h=$(printf "%s" "$domain" | cut -d . -f "$i"-)
if [ -z "$h" ]; then if [ -z "$h" ]; then
return 1 return 1
fi fi
if _contains "$(dig ns "$h")" "mijn.host"; then if _contains "$(dig ns "$h")" "mijn.host"; then
root_zone="$h" root_zone="$h"
subdomain=$(printf "%s" "$domain" | cut -d . -f 1-$p) subdomain=$(printf "%s" "$domain" | cut -d . -f 1-"$p")
return 0 return 0
fi fi