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