Skip to content

Commit

Permalink
Replace /bin/env with /usr/bin/env
Browse files Browse the repository at this point in the history
The correct path for the env binary on systems without a usr-merge is /usr/bin/env

Signed-off-by: Sertonix <[email protected]>
  • Loading branch information
sertonix committed Sep 8, 2024
1 parent 5560e57 commit 5a36c05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/gen_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/env bash
#!/usr/bin/env bash

## @file
# Test generation script for gnu-efi.
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/env bash
#!/usr/bin/env bash

## @file
# Test script for gnu-efi.
Expand Down

0 comments on commit 5a36c05

Please sign in to comment.