From 30f1900da555e641cdc9b484641e588b3b434c01 Mon Sep 17 00:00:00 2001 From: CZECHIA-COM Date: Thu, 29 Jan 2026 21:16:42 +0100 Subject: [PATCH] Update dns_czechia.sh Fix shellcheck warnings in dns_czechia plugin --- dnsapi/dns_czechia.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnsapi/dns_czechia.sh b/dnsapi/dns_czechia.sh index 0f6ec8c7..905b22a0 100644 --- a/dnsapi/dns_czechia.sh +++ b/dnsapi/dns_czechia.sh @@ -154,7 +154,7 @@ _czechia_pick_zone() { [ -z "$z" ] && continue case "$fd" in "$z"|*".$z") - if [ ${#z} -gt $bestlen ]; then + if [ "${#z}" -gt "$bestlen" ]; then best="$z" bestlen=${#z} fi @@ -189,7 +189,7 @@ _czechia_rel_host() { suffix=".$z" case "$fd" in *"$suffix") - rel="${fd%$suffix}" + rel="${fd%"$suffix"}" [ -z "$rel" ] && rel="@" echo "$rel" return 0