we can not use -delete as we have to limit the depth so we do not remove files from the current composes
the rm -rf is needed to clean up the directories -delete gives us find: cannot delete '/mnt/koji/compose/rawhide/Fedora-Rawhide-20160512.n.0/compose': Directory not empty find: cannot delete '/mnt/koji/compose/rawhide/Fedora-Rawhide-20160512.n.0/logs': Directory not empty Revert "Use -delete instead of -exec rm it's quicker because it doesn't fork for every file" This reverts commit e45177a4c6a0dc6278dce858095422c67b9fb699. Signed-off-by: Dennis Gilmore <dennis@ausil.us>
This commit is contained in:
parent
79efdbf392
commit
d434ffed80
@ -135,5 +135,5 @@ do
|
||||
./releng/scripts/srpm-excluded-arch.py -a $arches --path $DESTDIR/compose/Everything/source/tree/Packages/\*/ >$DESTDIR/logs/excludearch-$koji.log
|
||||
done
|
||||
|
||||
find $TARGET_DIR -xdev -depth -maxdepth 2 -mtime +14 -delete
|
||||
find $TARGET_DIR -xdev -depth -maxdepth 2 -mtime +14 -exec rm -rf {} \;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user