forked from ungleich-public/ccollect
fix selecting removal backups code
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
7b65687da5
commit
d04972026f
1 changed files with 1 additions and 1 deletions
2
ccollect
2
ccollect
|
@ -445,7 +445,7 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
|
|||
remove="$((${count} - ${c_interval} + 1))"
|
||||
_techo "Removing ${remove} backup(s)..."
|
||||
|
||||
ls -${TSORT}d1r | grep "${INTERVAL}\\." | head -n "${remove}" > "${TMP}" || \
|
||||
ls -${TSORT}1r | grep "^${INTERVAL}\\." | head -n "${remove}" > "${TMP}" || \
|
||||
_exit_err "Listing old backups failed"
|
||||
|
||||
delete_from_file "${TMP}"
|
||||
|
|
Loading…
Reference in a new issue