Use -delete instead of -exec rm it's quicker because it doesn't fork for every file

Signed-off-by: Peter Robinson <pbrobinson@fedoraproject.org>
This commit is contained in:
Peter Robinson 2016-05-20 11:42:17 +01:00
parent b3a56aee17
commit 1b80cae931

View File

@ -132,5 +132,5 @@ do
./releng/scripts/srpm-excluded-arch.py -a $arches --path $DESTDIR/compose/Everything/source/tree/SRPMS/\*/ >$DESTDIR/logs/excludearch-$koji.log ./releng/scripts/srpm-excluded-arch.py -a $arches --path $DESTDIR/compose/Everything/source/tree/SRPMS/\*/ >$DESTDIR/logs/excludearch-$koji.log
done done
find $TARGET_DIR -xdev -depth -maxdepth 2 -mtime +14 -exec rm -rf {} \; find $TARGET_DIR -xdev -depth -maxdepth 2 -mtime +14 -delete