]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix solaris portability problem
authorEvan Hunt <each@isc.org>
Fri, 1 Jun 2012 18:40:52 +0000 (11:40 -0700)
committerEvan Hunt <each@isc.org>
Fri, 1 Jun 2012 18:40:52 +0000 (11:40 -0700)
bin/tests/system/rpz/tests.sh

index 2df240f762b78992344e46bfffa392a7e580a480..d500e5cfbcc7d0097ed494122278431474f45451 100644 (file)
@@ -48,12 +48,10 @@ RNDCCMD="$RNDC -c $SYSTEMTESTTOP/common/rndc.conf -p 9953 -s"
 
 digcmd () {
     digcmd_args="+noadd +nosearch +time=1 +tries=1 -p 5300 $*"
-    if ! expr "$digcmd_args" : '.*@' >/dev/null; then
+    expr "$digcmd_args" : '.*@' >/dev/null || \
        digcmd_args="$digcmd_args @$ns3"
-    fi
-    if ! expr "$digcmd_args" : '.*+[no]*auth' >/dev/null; then
+    expr "$digcmd_args" : '.*+[no]*auth' >/dev/null || \
        digcmd_args="+noauth $digcmd_args"
-    fi
     #echo I:dig $digcmd_args 1>&2
     $DIG $digcmd_args
 }