diff --git a/libexec/bats-exec b/libexec/bats-exec index 913120b..25e9a13 100755 --- a/libexec/bats-exec +++ b/libexec/bats-exec @@ -24,8 +24,8 @@ run() { [[ ! "$-" =~ e ]] || e=1 set +e output="$("$@" 2>&1)" - IFS=$'\n' lines=($output) status="$?" + IFS=$'\n' lines=($output) [ -z "$e" ] || set -e }