1
0
mirror of https://github.com/sstephenson/bats.git synced 2024-12-26 14:39:46 +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
set +e
output="$("$@" 2>&1)"
IFS=$'\n' lines=($output)
status="$?"
IFS=$'\n' lines=($output)
[ -z "$e" ] || set -e
}