From 5a36c05277f3b01f2eae5a54255eaf0db2447c6b Mon Sep 17 00:00:00 2001 From: Sertonix Date: Mon, 9 Sep 2024 00:25:43 +0200 Subject: [PATCH] Replace /bin/env with /usr/bin/env The correct path for the env binary on systems without a usr-merge is /usr/bin/env Signed-off-by: Sertonix --- tests/gen_tests.sh | 6 +++--- tests/run_tests.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/gen_tests.sh b/tests/gen_tests.sh index 28efc3e..979da11 100755 --- a/tests/gen_tests.sh +++ b/tests/gen_tests.sh @@ -1,4 +1,4 @@ -#!/bin/env bash +#!/usr/bin/env bash ## @file # Test generation script for gnu-efi. @@ -24,13 +24,13 @@ while IFS=$'\r\n' read -r line; do teardown_file=$(printf "%s/%03d teardown.sh" $TEST_DIR $test_number) elif [[ ${line:0:1} == ">" ]]; then if [[ ! -f "$setup_file" ]]; then - echo "#!/bin/env bash" > "$setup_file" + echo "#!/usr/bin/env bash" > "$setup_file" chmod 755 "$setup_file" fi echo "${line:2}" >> "$setup_file" elif [[ ${line:0:1} == "<" ]]; then if [[ ! -f "$teardown_file" ]]; then - echo "#!/bin/env bash" > "$teardown_file" + echo "#!/usr/bin/env bash" > "$teardown_file" chmod 755 "$teardown_file" fi echo "${line:2}" >> "$teardown_file" diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 7cd420e..725998b 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -1,4 +1,4 @@ -#!/bin/env bash +#!/usr/bin/env bash ## @file # Test script for gnu-efi.