mirror of
https://github.com/sstephenson/bats.git
synced 2026-02-25 09:18:10 +01:00
Add $lines array
This commit is contained in:
@@ -24,6 +24,7 @@ run() {
|
||||
[[ ! "$-" =~ e ]] || e=1
|
||||
set +e
|
||||
output="$("$@" 2>&1)"
|
||||
IFS=$'\n' lines=($output)
|
||||
status="$?"
|
||||
[ -z "$e" ] || set -e
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user