scripts: fix link-vmlinux.sh bash-ism
authorSylvain BERTRAND <sylvain.bertrand@gmail.com>
Thu, 7 May 2015 00:36:04 +0000 (00:36 +0000)
committerMichal Marek <mmarek@suse.cz>
Thu, 7 May 2015 10:42:03 +0000 (12:42 +0200)
commit528df325a6c3bc965b77b6ddf91506a1bb24f2f7
tree2c139a548615c7d7cf8f5707be57eefda6ff27cc
parent25f31f6a164aaa1a1ada8b8777c0c01e61bac2bb
scripts: fix link-vmlinux.sh bash-ism

While building linux with dash shell:
  LINK    vmlinux
trap: SIGHUP: bad trap
/src/linux-4.0/Makefile:933: recipe for target 'vmlinux' failed
make[1]: *** [vmlinux] Error 1

See the following document for behavior of posix shell trap instruction:
http://pubs.opengroup.org/onlinepubs/000095399/utilities/trap.html

Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sylvain BERTRAND <sylvain.bertrand@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/link-vmlinux.sh