mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Print loop counter on failure
This commit is contained in:
parent
619cebee12
commit
2cd64e1193
@ -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 New Issue
Block a user