devtools: fix checkpatch with dash
When running checkpatch.sh, it generates the following error
on some linux distributions(like Debian) with Dash as the
default shell interpreter.
trap: SIGINT: bad trap
The fix is to replace SIGINT with INT signal, it works for
both bash and dash.
Fixes: 4bec48184e
("devtools: add checks for ABI symbol addition")
Cc: stable@dpdk.org
Signed-off-by: Gavin Hu <gavin.hu@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
Tested-by: Vipin Varghese <vipin.varghese@intel.com>
This commit is contained in:
parent
ac7c491c3f
commit
d633ed1077
@ -29,7 +29,7 @@ clean_tmp_files() {
|
||||
fi
|
||||
}
|
||||
|
||||
trap "clean_tmp_files" SIGINT
|
||||
trap "clean_tmp_files" INT
|
||||
|
||||
print_usage () {
|
||||
cat <<- END_OF_HELP
|
||||
|
Loading…
Reference in New Issue
Block a user