From a469e8dd045021b95a8e51ac8486113dec61811b Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Wed, 28 Dec 2011 18:45:05 -0600 Subject: [PATCH] Fix $status --- libexec/bats-exec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }