mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 02:59:34 -05:00
Print loop counter on failure
This commit is contained in:
parent
619cebee12
commit
2cd64e1193
1 changed files with 3 additions and 0 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Reference in a new issue