Quote:
Originally Posted by
tarunn.dubeyy
...
quite I m digging deep still didn't found correct way yet
Since you haven't shown how deep you've dug, I shall assume that you have familiarity with the basic commands and concepts.
Here's what you may want to do:
- Ensure that each script returns a consistent exit code that defines success or failure.
- Display the scripts in sorted order using
ls and
sort, since the sequence of execution is the same as sorted order.
- Use a
for loop to loop through them and source them, one per iteration.
- Test the exit code
$? right after the execution.
- If the exit code indicates failure, print the script name and
break out of the loop.
HTH,
tyler_durden