Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
prioux opened this issue Aug 10, 2022 · 0 comments
Open

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

prioux opened this issue Aug 10, 2022 · 0 comments

Comments

@prioux
Copy link
Member

prioux commented Aug 10, 2022

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant