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

View file

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