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:
parent
b3a56aee17
commit
1b80cae931
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user