@@ -1,5 +1,5 @@
-SHELL := /bin/bash
+SHELL := /usr/bin/env bash
ifeq ($(wildcard config.mak),)
$(error run ./configure first. See ./configure -h)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
if [ -z "$STANDALONE" ]; then
if [ ! -f config.mak ]; then
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
prefix=/usr/local
cc=gcc
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
if [ -z "$STANDALONE" ]; then
if [ ! -f config.mak ]; then
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
verbose="no"
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
if [ ! -f config.mak ]; then
echo "run ./configure && make first. See ./configure -h"
@@ -38,7 +38,7 @@ generate_test ()
{
local args=( $(escape "${@}") )
- echo "#!/bin/bash"
+ echo "#!/usr/bin/env bash"
echo "export STANDALONE=yes"
echo "export HOST=\$(uname -m | sed -e 's/i.86/i386/;s/arm.*/arm/;s/ppc64.*/ppc64/')"
echo "export PRETTY_PRINT_STACKS=no"
@@ -65,7 +65,7 @@ generate_test ()
temp_file bin "$kernel"
args[3]='$bin'
- (echo "#!/bin/bash"
+ (echo "#!/usr/bin/env bash"
cat scripts/arch-run.bash "$TEST_DIR/run") | temp_file RUNTIME_arch_run
echo "exec {stdout}>&1"
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
[ -z "$STANDALONE" ] && source scripts/arch-run.bash
Some operating systems installs bash executable file to other directory than /bin. So it is better to use env utility to find bash. Signed-off-by: Sergey Bronnikov <sergeyb@bronevichok.ru> --- Makefile | 2 +- arm/run | 2 +- configure | 2 +- powerpc/run | 2 +- run_tests.sh | 2 +- scripts/mkstandalone.sh | 6 +++--- x86/run | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-)