Make 'run' print the command output

```git-check-assertions
run test/git-check-assertions.bats
assert_success

git checkout HEAD~1 bin
run test/git-check-assertions.bats
assert_failure
```
This commit is contained in:
Sven van Heugten 2026-03-06 05:17:56 +01:00
parent b3db4fcf2b
commit 495f6757dd
No known key found for this signature in database
GPG key ID: D612F88666F4F660
2 changed files with 11 additions and 0 deletions

View file

@ -30,6 +30,7 @@ run() {
output="$("$@" 2>&1)"
status=$?
set -e
printf '%s\n' "$output"
return 0
}
assert_success() {