[Piuparts-commits] rev 514 - piatti/home/piupartsm/bin
Holger Levsen
holger at alioth.debian.org
Sat Oct 3 10:35:06 UTC 2009
Author: holger
Date: 2009-10-03 10:35:06 +0000 (Sat, 03 Oct 2009)
New Revision: 514
Modified:
piatti/home/piupartsm/bin/archive_old_logs
Log:
bugfix
Modified: piatti/home/piupartsm/bin/archive_old_logs
===================================================================
--- piatti/home/piupartsm/bin/archive_old_logs 2009-10-01 09:49:22 UTC (rev 513)
+++ piatti/home/piupartsm/bin/archive_old_logs 2009-10-03 10:35:06 UTC (rev 514)
@@ -36,15 +36,15 @@
mkdir -p $MASTER/$SECTION/archive
cd $MASTER/$SECTION
for DIR in fail pass bugged ; do
+ cd $DIR
LOGS=$( for i in `ls -1 | cut -d "_" -f1|sort -u `; do ls -rt1 $i*|sed '$d' ; done )
if [ ! -z "$LOGS" ] ; then
mkdir -p $MASTER/$SECTION/archive/$DIR
- cd $DIR
for LOG in $LOGS ; do
mv $LOG $MASTER/$SECTION/archive/$DIR
done
- cd ..
fi
- done
+ cd ..
+ done
done
More information about the Piuparts-commits
mailing list