do not overflow exit status. [RT #42643]

This commit is contained in:
Mark Andrews
2016-06-14 13:48:39 +10:00
parent ecff557eeb
commit 3635d8f910
93 changed files with 119 additions and 100 deletions

View File

@@ -688,5 +688,6 @@ ttl=`awk '/"A" "zero" "ttl"/ { print $2 }' dig.out.1.${n}`
test ${ttl:-1} -eq 0 || ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status
[ $status -eq 0 ] || exit 1