Skip to contentSkip to conversation

scripts: coccicheck: Use /usr/bin/env

PATCH Applied Jarkko Sakkinen 2 participants 2 messages Jan 26, 2023 – Feb 25, 2023 Coccinelle/Semantic Patches (SmPL)

lore
Share & tools
lore
#0 lore raw

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.

---
 scripts/coccicheck | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/coccicheck +1 -1
index 2956fce8fa4f..b4d0d6eb3e73 100755
@@ -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
maintainer Applied
#1 lore raw
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/env to locate the executable binary for bash.

Applied, thanks.

julia

Quoted 18 lines
---
 scripts/coccicheck | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/coccicheck +1 -2
index 2956fce8fa4f..b4d0d6eb3e73 100755
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: GPL-2.0
 # Linux kernel coccicheck
 #
--

2.38.1