]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Handle non-zero return codes in wildcard test
authorTom Krizek <tkrizek@isc.org>
Mon, 19 Jun 2023 11:58:01 +0000 (13:58 +0200)
committerTom Krizek <tkrizek@isc.org>
Fri, 14 Jul 2023 13:49:16 +0000 (15:49 +0200)
bin/tests/system/wildcard/tests.sh

index 42421acbe54380fb44df8998faf29670d4855d7e..b956874aa521639f165483cf035f55604e053035 100644 (file)
@@ -249,7 +249,7 @@ ret=0
 i=0
 while test $i -lt 256
 do
-       x=`expr 00$i : '.*\(...\)$'`
+       x=$(expr 00$i : '.*\(...\)$' || true)
        $DIG $DIGOPTS @10.53.0.1 "\\$x.example" TXT > dig.out.ns1.$x.test$n
        if test $i -le 32 -o $i -ge 127
        then