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
|
||||
while [ "$j" -lt "$i" ]; do
|
||||
eval realincomplete=\"\$incomplete_$i\"
|
||||
eval realincomplete=\"\$incomplete_$j\"
|
||||
_techo "Incomplete backup: ${realincomplete}"
|
||||
if [ "${DELETE_INCOMPLETE}" = "yes" ]; then
|
||||
_techo "Deleting ${realincomplete} ..."
|
||||
|
@ -492,11 +492,12 @@ while [ "${i}" -lt "${no_sources}" ]; do
|
|||
done < "${TMP}"
|
||||
|
||||
j=0
|
||||
while [ $i -gt 0 ]; do
|
||||
eval to_remove=\"remove_$i\"
|
||||
while [ "$j" -lt "$i" ]; do
|
||||
eval to_remove=\"remove_$j\"
|
||||
_techo "Removing ${to_remove} ..."
|
||||
pcmd echo rm ${VVERBOSE} -rf "${to_remove}" || \
|
||||
_exit_err "Removing ${to_remove} failed."
|
||||
j=$((j+1))
|
||||
done
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue