From 7558d88a3d9816425ab2fb9ba81be86691788dfb Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 17 Aug 2007 15:05:45 +0200 Subject: [PATCH] cleanup (in testing) --- tools/gnu-du-backup-size-compare.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/gnu-du-backup-size-compare.sh b/tools/gnu-du-backup-size-compare.sh index ea8b833..4a199dc 100755 --- a/tools/gnu-du-backup-size-compare.sh +++ b/tools/gnu-du-backup-size-compare.sh @@ -23,9 +23,10 @@ if [ ! -d "$CCOLLECT_SOURCES" ]; then exit 1 fi -cd "$CCOLLECT_INTERVALS" +cd "${CCOLLECT_SOURCES}" -for interval in *; do - eval int_$interval=$(cat $interval); - eval echo $interval: \$int_$interval; +while [ "$#" -gt 0 ]; do + source="$1"; shift + fsource="${CCOLLECT_SOURCES}/${source}" + du "${fsource}/"* "${fsource}" done