Fix pattern matching for best zone selection

This commit is contained in:
An | Anton Röhm
2025-09-07 17:14:06 +02:00
committed by GitHub
parent 93dc22a71f
commit 31d7264583

View File

@@ -100,7 +100,7 @@ _get_root() {
bestzone="" bestzone=""
for z in $zones; do for z in $zones; do
case "$fulldomain" in case "$fulldomain" in
*.$z|$z) *."$z"|"$z")
if [ ${#z} -gt ${#bestzone} ]; then if [ ${#z} -gt ${#bestzone} ]; then
bestzone=$z bestzone=$z
fi fi