hcl/t/run.sh
hyung-hwan 3d0cdb5366
All checks were successful
continuous-integration/drone/push Build is passing
rewrote compile_fun() to support attribute list for a function
2024-10-02 00:33:34 +09:00

12 lines
390 B
Bash

#!/bin/sh
## use a subshell to execute the actual program in case the
## program crashes or exits without an error message.
echo RUN "[$@]"
($@ 2>&1 || echo "ERROR: exited with $?") | grep -E '^ERROR:' && exit 1
##[ "x$MEMCHECK" = "xyes" ] && {
## [ -x /usr/bin/valgrind ] && {
## valgrind --leak-check=full --show-reachable=yes --track-fds=yes --log-file=/tmp/x "$@" 2>&1
## }
##}
exit 0