I have a Bash parent script that on unexpected input calls an error logging child script that logs the error. I also want the execution to halt when the error occurs and th
try..
#normal flow
[[ $(check_error_condition) ]] && /some/error_reporter.sh || exit 1
so,
You don't want stop the parent from a child
(the parents usually don't like this behavior) :), you instead want tell to parent - need stop
and he will stop itself (if want) ;)