Print loop counter on failure

This commit is contained in:
Howard Chu 2011-09-07 23:49:41 -07:00
parent 619cebee12
commit 2cd64e1193

View File

@ -257,6 +257,9 @@ while [ $COUNTER -le $LOOP ]; do
fi
if [ $RC -ne 0 ]; then
if [ $LOOP -gt 1 ]; then
echo "Failed after $COUNTER of $LOOP iterations"
fi
exit $RC
else
COUNTER=`expr $COUNTER + 1`