forked from ungleich-public/ccollect
fix endless loop
This commit is contained in:
parent
0d5cc4ddbc
commit
8ace2a6520
1 changed files with 5 additions and 3 deletions
|
@ -451,18 +451,20 @@ while [ "${i}" -lt "${no_sources}" ]; do
|
|||
|
||||
i=0
|
||||
while read incomplete; do
|
||||
eva incomplete_$i=$(echo ${incomplete} | sed "s/\\.${c_marker}\$//")
|
||||
eval incomplete_$i=\"$(echo ${incomplete} | sed "s/\\.${c_marker}\$//")\"
|
||||
i=$(($i+1))
|
||||
done < "${TMP}"
|
||||
|
||||
while [ $i -gt 0 ]; do
|
||||
eval realincomplete=\"incomplete_$i\"
|
||||
j=0
|
||||
while [ "$j" -lt "$i" ]; do
|
||||
eval realincomplete=\"\$incomplete_$i\"
|
||||
_techo "Incomplete backup: ${realincomplete}"
|
||||
if [ "${DELETE_INCOMPLETE}" = "yes" ]; then
|
||||
_techo "Deleting ${realincomplete} ..."
|
||||
pcmd rm $VVERBOSE -rf "${ddir}/${realincomplete}" || \
|
||||
_exit_err "Removing ${realincomplete} failed."
|
||||
fi
|
||||
i=$((i+i))
|
||||
done
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue