-p is not needed, when matching directories with */

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-10-31 07:31:23 +01:00
parent 2a6ab4c125
commit 1b591a040c

View file

@ -458,7 +458,8 @@ while [ "${i}" -lt "${no_sources}" ]; do
#
# Check: maximum number of backups is reached?
#
count="$(pcmd ls -p1 "${ddir}/${INTERVAL}.*/" | wc -l \
count="$(pcmd ls -1 "${ddir}/${INTERVAL}.*/" | wc -l \
| sed 's/^ *//g')" || _exit_err "Counting backups failed"
_techo "Existing backups: ${count} Total keeping backups: ${c_interval}"