one more use -delete on find commands

This commit is contained in:
Peter Robinson 2018-10-14 17:52:11 +01:00
parent fae554d6cb
commit e0cda5a30e

View File

@ -1555,7 +1555,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}"