From 5066f417a937c4c9e384f821ce2ec0951c8c78ca Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 15 Jan 2011 02:11:28 +0100 Subject: [PATCH] remove pcmd from backup listing code Signed-off-by: Nico Schottelius --- ccollect | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ccollect b/ccollect index 01ef9b1..a3b14bb 100755 --- a/ccollect +++ b/ccollect @@ -461,8 +461,7 @@ while [ "${source_no}" -lt "${no_sources}" ]; do remove="$((${count} - ${substract}))" _techo "Removing ${remove} backup(s)..." - pcmd ls -${TSORT}d1r "${ddir}/${INTERVAL}."*"/" | - head -n "${remove}" > "${TMP}" || \ + ls -${TSORT}d1r | grep "${INTERVAL}\\." | head -n "${remove}" > "${TMP}" || \ _exit_err "Listing old backups failed" delete_from_file "${TMP}"