forked from ungleich-public/ccollect
add more quotes
This commit is contained in:
parent
8ace2a6520
commit
4e47c881fb
1 changed files with 4 additions and 3 deletions
|
@ -464,15 +464,15 @@ while [ "${i}" -lt "${no_sources}" ]; do
|
|||
pcmd rm $VVERBOSE -rf "${ddir}/${realincomplete}" || \
|
||||
_exit_err "Removing ${realincomplete} failed."
|
||||
fi
|
||||
i=$((i+i))
|
||||
j=$((j+1))
|
||||
done
|
||||
|
||||
#
|
||||
# check if maximum number of backups is reached, if so remove
|
||||
# use grep and ls -p so we only look at directories
|
||||
#
|
||||
count=$(pcmd ls -p1 "${ddir}" | grep "^${INTERVAL}\..*/\$" | wc -l \
|
||||
| sed 's/^ *//g') || _exit_err "Counting backups failed"
|
||||
count="$(pcmd ls -p1 "${ddir}" | grep "^${INTERVAL}\..*/\$" | wc -l \
|
||||
| sed 's/^ *//g')" || _exit_err "Counting backups failed"
|
||||
|
||||
_techo "Existing backups: ${count} Total keeping backups: ${c_interval}"
|
||||
|
||||
|
@ -490,6 +490,7 @@ while [ "${i}" -lt "${no_sources}" ]; do
|
|||
i=$(($i+1))
|
||||
done < "${TMP}"
|
||||
|
||||
j=0
|
||||
while [ $i -gt 0 ]; do
|
||||
eval to_remove=\"remove_$i\"
|
||||
_techo "Removing ${to_remove} ..."
|
||||
|
|
Loading…
Reference in a new issue