Commit ebf3e3e8 authored by Pekka Pessi's avatar Pekka Pessi

run_test_nta: fixed bash2-isms

darcs-hash:20070413164600-55b16-b73413746416cf2880a35a540f97732d01a8b65d.gz
parent 004213d5
#! /bin/bash
#! /bin/sh
#
# Run nta_test with our own name server
#
......@@ -50,11 +50,11 @@ export PATH
me6="::1"
if ../su/localinfo -6 -n -g -s >& /dev/null ; then
if ../su/localinfo -6 -n -g -s > /dev/null 2>&1 ; then
ipv6=true aaaa=aaaa v6flag=-6
me6=$(../su/localinfo -6 -n -s -g | awk '{print $1; exit(0); }')
else
if ! ../su/localinfo '--help' >& /dev/null ; then
if ! ../su/localinfo '--help' > /dev/null 2>&1 ; then
echo "warning: $0: missing 'localinfo', cannot test IPv6"
else
echo "warning: $0: no valid IPv6 addresses available"
......@@ -62,7 +62,7 @@ else
ipv6=false aaaa=a
fi
if type named >& /dev/null && ./portbind --help >& /dev/null
if type named > /dev/null 2>&1 && ./portbind --help > /dev/null 2>&1
then
port=$(./portbind $v6flag) sink=$port
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment