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 <>
Tested-by: Deepak R Varma <>
Signed-off-by: Julia Lawall <>
diff --git a/scripts/coccicheck b/scripts/coccicheck
index fb492f0..e52cb43 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -1,4 +1,4 @@
+#!/usr/bin/env bash
 # SPDX-License-Identifier: GPL-2.0
 # Linux kernel coccicheck