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