scripts: coccicheck: Use /usr/bin/env
PATCH 1/1 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 <[email protected]>
--- scripts/coccicheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/coccicheck +1 -1
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-2.0 # Linux kernel coccicheck #
Signature · 1 line
2.38.1
Quoted 5 lines · Jarkko Sakkinen
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/envto locate the executable binary for bash.Signed-off-by Jarkko Sakkinen <[email protected]>
Applied, thanks.
julia
Quoted 18 lines
--- scripts/coccicheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/coccicheck +1
-2@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # SPDX-License-Identifier: GPL-2.0 # Linux kernel coccicheck # --2.38.1