From 7b76e1ee65648b21175afc8ee0e4a8ddf82d5d27 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 17 Mar 2008 12:21:35 +0100 Subject: [PATCH] bugfix: removing old backups --- ccollect.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccollect.sh b/ccollect.sh index 61a0593..bd695e7 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -493,9 +493,9 @@ while [ "${i}" -lt "${no_sources}" ]; do j=0 while [ "$j" -lt "$i" ]; do - eval to_remove=\"remove_$j\" + eval to_remove=\"\$remove_$j\" _techo "Removing ${to_remove} ..." - pcmd echo rm ${VVERBOSE} -rf "${to_remove}" || \ + pcmd rm ${VVERBOSE} -rf "${ddir}/${to_remove}" || \ _exit_err "Removing ${to_remove} failed." j=$((j+1)) done