diff --git a/libexec/bats-exec-test b/libexec/bats-exec-test index 09e8a7f..1ffc746 100755 --- a/libexec/bats-exec-test +++ b/libexec/bats-exec-test @@ -39,10 +39,10 @@ load() { filename="$BATS_TEST_DIRNAME/${name}.bash" fi - [ -f "$filename" ] || { + if [[ ! -f "$filename" ]]; then echo "bats: $filename does not exist" >&2 exit 1 - } + fi source "${filename}" }