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)
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

index fb492f0..e52cb43 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: GPL-2.0
 # Linux kernel coccicheck
 #