]> Git Repo - linux.git/commitdiff
scripts: coccicheck: Use /usr/bin/env
authorJarkko Sakkinen <[email protected]>
Thu, 26 Jan 2023 21:56:12 +0000 (21:56 +0000)
committerJulia Lawall <[email protected]>
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 <[email protected]>
Tested-by: Deepak R Varma <[email protected]>
Signed-off-by: Julia Lawall <[email protected]>
scripts/coccicheck

index fb492f032c5fe7f8cacb0aa14dc041b7c5adb3c7..e52cb43fede60fe1be7eea170b63a6c0d54b6e0b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: GPL-2.0
 # Linux kernel coccicheck
 #
This page took 0.055605 seconds and 4 git commands to generate.