We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5adbe5e + 3f0d2a8 commit c150736Copy full SHA for c150736
tests/assertion-test-helpers.bats
@@ -31,7 +31,8 @@ create_failing_test_stub() {
31
if [[ ! -d "$BATS_TMPDIR/bin" ]]; then
32
mkdir -p "$BATS_TMPDIR/bin"
33
fi
34
- printf '%s\n' 'printf "ARG: \"%s\"\n" "$@"' 'exit 1' >"$cmd_path"
+ printf '%s\n' '#! /usr/bin/env bash' \
35
+ 'printf "ARG: \"%s\"\n" "$@"' 'exit 1' >"$cmd_path"
36
chmod 755 "$cmd_path"
37
PATH="$BATS_TMPDIR/bin:$PATH"
38
hash "$cmd_name"
0 commit comments