Changed $(command) to command in tests.sh for compatibility with

older bourne shells.
This commit is contained in:
Evan Hunt
2010-12-20 18:37:07 +00:00
parent 72cfc80dab
commit 8fda09fc85
2 changed files with 8 additions and 6 deletions

View File

@@ -25,8 +25,9 @@ EOF
return 1
}
out="$($DIG $DIGOPTS -t $type -q $host | egrep ^$host)"
[ $(echo "$out" | grep "$digout" | wc -l) -eq 1 ] || {
out=`$DIG $DIGOPTS -t $type -q $host | egrep ^$host`
lines=`echo "$out" | grep "$digout" | wc -l`
[ $lines -eq 1 ] || {
echo "I:dig output incorrect for $host $type $cmd: $out"
return 1
}