add sleep 1 to loop

(cherry picked from commit cc444c73d5)
This commit is contained in:
Mark Andrews
2013-04-10 21:35:36 +10:00
parent c4d2f352d3
commit 0f5734786a

View File

@@ -66,6 +66,7 @@ for i in 0 1 2 3 4 5 6 7 8 9; do
ret=0
grep 'dlz_example: shutting down zone example.nil' ns1/named.run > /dev/null 2>&1 || ret=1
[ "$ret" -eq 0 ] && break
sleep 1
done
[ "$ret" -eq 0 ] || echo "I:failed"
status=`expr $status + $ret`