devtools: fix cleanup of checkpatch temporary file
authorDavid Marchand <david.marchand@redhat.com>
Tue, 13 Aug 2019 06:38:22 +0000 (08:38 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 21 Oct 2019 14:19:00 +0000 (16:19 +0200)
commit2c7845a70e708039c3f129de86ffcf1fccfa76d9
tree4f6d159a0d75d98e77e0975d166a86d58cf78f2a
parent384b0a33fe37e6e3c616f9f304908eaaced12f79
devtools: fix cleanup of checkpatch temporary file

The regexp part of the cleanup routine was not updated accordingly when
a common prefix for temp files was introduced.
Set the trap handler only when required.

Fixes: ff37ca5d3773 ("devtools: use a common prefix for temporary files")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
devtools/checkpatches.sh