redhat: Test tmp file before deleting

If BTF is not enabled in the kernel config then .tmp_vmlinux.btf will not
exist. The rpm build will throw an error because the file doesn't exist.

Test for the existence of .tmp_vmlinux.btf before deleting it.

Reported by: stan upaitag@zoho.com
Signed-off-by: Prarit Bhargava prarit@redhat.com

Merge request reports

Loading