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
-#!/bin/bash
+#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
set -eu
-#!/bin/bash
+#!/usr/bin/env bash
#first parameter: seconds per test
DURATION=$1
-#!/bin/bash
+#!/usr/bin/env bash
# 1st parameter: seconds per test
DURATION=$1
-#!/bin/bash
+#!/usr/bin/env bash
. ../utils/tap.sh
. ./common.sh
-#!/bin/bash
+#!/usr/bin/env bash
. ../utils/tap.sh
. ./common.sh
-#!/bin/bash
+#!/usr/bin/env bash
#
# Copyright 2010 Patrick LeBoutillier <patrick.leboutillier@gmail.com>
#
diag MSG
EXAMPLE:
- #!/bin/bash
+ #!/usr/bin/env bash
. tap-functions