one more use -delete on find commands

This commit is contained in:
Peter Robinson 2018-10-14 17:52:11 +01:00
parent 049b0f66f6
commit 09bf7b1b2d
1 changed files with 1 additions and 1 deletions

View File

@ -1604,7 +1604,7 @@ BuildKernel() {
ln -sf $DevelDir $RPM_BUILD_ROOT/lib/modules/$KernelVer/build
# prune junk from kernel-devel
find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -exec rm -f {} \;
find $RPM_BUILD_ROOT/usr/src/kernels -name ".*.cmd" -delete
# build a BLS config for this kernel
%{SOURCE43} "$KernelVer" "$RPM_BUILD_ROOT" "%{?variant}"