forked from ungleich-public/ccollect
fix another endless loop
This commit is contained in:
parent
96171314d7
commit
842e668c4c
1 changed files with 4 additions and 3 deletions
|
@ -457,7 +457,7 @@ while [ "${i}" -lt "${no_sources}" ]; do
|
||||||
|
|
||||||
j=0
|
j=0
|
||||||
while [ "$j" -lt "$i" ]; do
|
while [ "$j" -lt "$i" ]; do
|
||||||
eval realincomplete=\"\$incomplete_$i\"
|
eval realincomplete=\"\$incomplete_$j\"
|
||||||
_techo "Incomplete backup: ${realincomplete}"
|
_techo "Incomplete backup: ${realincomplete}"
|
||||||
if [ "${DELETE_INCOMPLETE}" = "yes" ]; then
|
if [ "${DELETE_INCOMPLETE}" = "yes" ]; then
|
||||||
_techo "Deleting ${realincomplete} ..."
|
_techo "Deleting ${realincomplete} ..."
|
||||||
|
@ -492,11 +492,12 @@ while [ "${i}" -lt "${no_sources}" ]; do
|
||||||
done < "${TMP}"
|
done < "${TMP}"
|
||||||
|
|
||||||
j=0
|
j=0
|
||||||
while [ $i -gt 0 ]; do
|
while [ "$j" -lt "$i" ]; do
|
||||||
eval to_remove=\"remove_$i\"
|
eval to_remove=\"remove_$j\"
|
||||||
_techo "Removing ${to_remove} ..."
|
_techo "Removing ${to_remove} ..."
|
||||||
pcmd echo rm ${VVERBOSE} -rf "${to_remove}" || \
|
pcmd echo rm ${VVERBOSE} -rf "${to_remove}" || \
|
||||||
_exit_err "Removing ${to_remove} failed."
|
_exit_err "Removing ${to_remove} failed."
|
||||||
|
j=$((j+1))
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue