scripts: coccicheck: Use /usr/bin/env
authorJarkko Sakkinen <jarkko@kernel.org>
Thu, 26 Jan 2023 21:56:12 +0000 (21:56 +0000)
committerJulia Lawall <Julia.Lawall@inria.fr>
Sat, 25 Feb 2023 19:11:06 +0000 (20:11 +0100)
commit2b2d50bdd258f8ef37c25f7d5f0d7ba694066dec
treeb64bfab7162beecd4e7bc1c3a53b11a0c0892666
parent180da5ef84fba0a8ea06870a38d6d657d689944a
scripts: coccicheck: Use /usr/bin/env

If bash is not located under /bin, coccicheck fails to run.  In the real
world, this happens for instance when NixOS is used in the host.  Instead,
use /usr/bin/env to locate the executable binary for bash.

Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Tested-by: Deepak R Varma <drv@mailo.com>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
scripts/coccicheck