exit from all nested shell script
How to exit from all nested shell script calls once in a single command?
..and if any way how to exit some number of nest calls times ?
Can you run your sub-scripts as 'source' instead of 'bash' ?
If not, you could call the sub-scripts like this:
And exit with an error from the sub-script:
If necessary, you could exit with a specific error code and test for it.
Topic archived. No new replies allowed.