aces / cbrain-plugins-neuro

5 stars 20 forks source link

Remove 'exit' statement at end of CIVET wrappers #241

Open prioux opened 2 years ago

prioux commented 2 years ago

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"