hcl/t/run.sh

6 lines
203 B
Bash
Raw Normal View History

2022-02-21 15:22:22 +00:00
#!/bin/sh
## use a subshell to execute the actual program in case the
## program crashes or exits without an error message.
($@ 2>&1 || echo "ERROR: exited with $?") | grep -E '^ERROR:' && exit 1
2022-02-21 15:22:22 +00:00
exit 0