fix count of backups

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-01-15 02:37:14 +01:00
parent 4675bf864c
commit aaf43af0d9
1 changed files with 1 additions and 2 deletions

View File

@ -437,8 +437,7 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
#
# Check: maximum number of backups is reached?
#
count="$(ls -1 | grep -c "^${INTERVAL}\\.")" \
|| _exit_err "Counting backups failed"
count="$(ls -1 | grep -c "^${INTERVAL}\\.")"
_techo "Existing backups: ${count} Total keeping backups: ${c_interval}"