The CIVET scripts all end with an explicit "exit 0".
This should be removed.
Also, the last command should return the actual status code of the CIVET program itself, no matter what other code is performed after it finished (e.g. the code that cats the output of failed stages). This can be done with:
CIVET_Processing_Pipeline blah blah
civet_status=$?
other stuff here
bash -c "exit $civet_status"
The CIVET scripts all end with an explicit "exit 0".
This should be removed.
Also, the last command should return the actual status code of the CIVET program itself, no matter what other code is performed after it finished (e.g. the code that cats the output of failed stages). This can be done with: