1
0
mirror of https://github.com/sstephenson/bats.git synced 2024-12-27 06:59:45 +01:00

Fix $status

This commit is contained in:
Sam Stephenson 2011-12-28 18:45:05 -06:00
parent 974dbf6a7c
commit a469e8dd04

View File

@ -24,8 +24,8 @@ run() {
[[ ! "$-" =~ e ]] || e=1 [[ ! "$-" =~ e ]] || e=1
set +e set +e
output="$("$@" 2>&1)" output="$("$@" 2>&1)"
IFS=$'\n' lines=($output)
status="$?" status="$?"
IFS=$'\n' lines=($output)
[ -z "$e" ] || set -e [ -z "$e" ] || set -e
} }