I think my question is similar to this one but with one extrat step - say I have 3 scripts:
- main_script.sh
- report_success.sh
- report_failure.sh
How can I do something like this pseudo-code does:
if (main_script.sh finished without error):
run report_success.sh
else:
run report_failure.sh
?
Thanks!