public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts: coccicheck: Use /usr/bin/env
@ 2023-01-26 21:56 Jarkko Sakkinen
  2023-02-25 19:26 ` Julia Lawall
  0 siblings, 1 reply; 2+ messages in thread
From: Jarkko Sakkinen @ 2023-01-26 21:56 UTC (permalink / raw)
  To: Julia Lawall
  Cc: Jarkko Sakkinen, Nicolas Palix,
	moderated list:COCCINELLE/Semantic Patches (SmPL), open list

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>
---
 scripts/coccicheck | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/coccicheck b/scripts/coccicheck
index 2956fce8fa4f..b4d0d6eb3e73 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: GPL-2.0
 # Linux kernel coccicheck
 #
-- 
2.38.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-25 19:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-26 21:56 [PATCH] scripts: coccicheck: Use /usr/bin/env Jarkko Sakkinen
2023-02-25 19:26 ` Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox