I have this:
node ${SUMAN_RUNNABLE} | tee -a run.sh.log
EXIT_CODE=$?;
but it looks like the exit code is always 0 because tee is providing the code not the node executable.
Is there a way to capture the exit code from the node executable in such a scenario?