Adjust shell scripts to allow Bash in other locations
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 4 Jul 2023 15:45:00 +0000 (11:45 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 4 Jul 2023 15:45:00 +0000 (11:45 -0400)
Linux-based OS for the most part provide Bash and being located in /bin,
but on other OS's the shell would be in another location. Utilize env(1)
and allow it to be located elsewhere.

[ Reimplementation of upstream patch from Brad Smith <brad@comstyle.com>. ]

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I99c2b4d0dbf6ab5e6f06a8d1fb0646aa69c639f5

extras/abi/dump_abi.sh
tests/benchmark/run-urcu-tests.sh
tests/benchmark/runhash.sh
tests/benchmark/runtests-batch.sh
tests/benchmark/runtests.sh
tests/utils/tap.sh

index e8aedcb13883b970b91c4d838a48ccd33a9fe5d4..ac581737e645ac8de378a5f94574a7090e9e9255 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # SPDX-License-Identifier: GPL-2.0-only
 
 set -eu
index 751514a7a6525069ea56a8c315e56431c9a3f980..4ef9eda2b208469a58e88313e70df98f773f2967 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 #first parameter: seconds per test
 DURATION=$1
index 4f693d1c61bcd44570c31e39c9fc8b96fea0f878..7d7e3ddc32980c3768abad037dda3a10d4414eb5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # 1st parameter: seconds per test
 DURATION=$1
index f030de6e6e75617314761ca3e8a0628b72861310..bdb48325659f87bbfd6ed7bea35ac0186c24a0cb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ../utils/tap.sh
 . ./common.sh
index dd5d6624bae6c470d68f5895dc9b26b20a918e80..bec16c11262d5fbeae0c1185e9c4007200bb9f42 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 . ../utils/tap.sh
 . ./common.sh
index 24ac1aa250d6a092ef9cd8a2c4bb21e9ea75d331..04e4084f1a100cc12866b94dfb9f3690c711e76a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Copyright 2010 Patrick LeBoutillier <patrick.leboutillier@gmail.com>
 #
@@ -65,7 +65,7 @@ OTHER:
   diag MSG
 
 EXAMPLE:
-  #!/bin/bash
+  #!/usr/bin/env bash
 
   . tap-functions
 
This page took 0.0277 seconds and 4 git commands to generate.