[applied] tests/runtestabidb?.sh.in: Use bash shebang

Message ID 87wmofdrjx.fsf@redhat.com
State New
Headers
Series [applied] tests/runtestabidb?.sh.in: Use bash shebang |

Commit Message

Dodji Seketeli April 30, 2024, 11:21 a.m. UTC
  Hello,

'function x() { ... }' is a bashism, but /bin/sh may be another shell,
like dash. Just use an explicit /bin/bash shebang as the file relies on
a few other bashisms like 'type'.

    * tests/runtestabidb[1-2].sh.in: Use bash shebang.

Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applied to master.
---
 tests/runtestabidb1.sh.in | 2 +-
 tests/runtestabidb2.sh.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/tests/runtestabidb1.sh.in b/tests/runtestabidb1.sh.in
index 9a0dc059..580e91f9 100755
--- a/tests/runtestabidb1.sh.in
+++ b/tests/runtestabidb1.sh.in
@@ -1,4 +1,4 @@ 
-#! /bin/sh
+#! /bin/bash
 
 # Run an abidb test based on the binaries right here
 
diff --git a/tests/runtestabidb2.sh.in b/tests/runtestabidb2.sh.in
index f2ce7adf..5029ebdc 100755
--- a/tests/runtestabidb2.sh.in
+++ b/tests/runtestabidb2.sh.in
@@ -1,4 +1,4 @@ 
-#! /bin/sh
+#! /bin/bash
 
 # Run an abidb test based on the binaries right here