mirror of
https://github.com/sstephenson/bats.git
synced 2024-12-26 14:39:46 +01:00
Fix $status
This commit is contained in:
parent
974dbf6a7c
commit
a469e8dd04
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user