Add a --force flag that doesn't halt execution on failed pre/post hooks.
Also note -- doing this will require errExit False within subshell for hook execution. This can be used with or without force flag by checking lastExitCode. This will, as a byproduct, allow us to exit gracefully (without stack trace).
Add a
--forceflag that doesn't halt execution on failed pre/post hooks.Also note -- doing this will require
errExit Falsewithin subshell for hook execution. This can be used with or without force flag by checkinglastExitCode. This will, as a byproduct, allow us to exit gracefully (without stack trace).