From: Pankaj Raghav
Date: Sun, 21 Sep 2025 10:03:57 +0000 (+0200)
Subject: scripts/faddr2line: Use /usr/bin/env bash for portability
X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b4679fcbfdf6f27f8455f9c7050ab6c46c6c5e0;p=thirdparty%2Fkernel%2Flinux.git
scripts/faddr2line: Use /usr/bin/env bash for portability
The shebang `#!/bin/bash` assumes a fixed path for the bash interpreter.
This path does not exist on some systems, such as NixOS, causing the
script to fail.
Replace `/bin/bash` with the more portable `#!/usr/bin/env bash`.
Signed-off-by: Pankaj Raghav
Signed-off-by: Josh Poimboeuf
---
diff --git a/scripts/faddr2line b/scripts/faddr2line
index 1f364fbb0cd84..7746d4ad0bfa0 100755
--- a/scripts/faddr2line
+++ b/scripts/faddr2line
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0
#
# Translate stack dump function offsets.