From 0d65f351b68d1314258c7fc0d47ff23f74aa1c28 Mon Sep 17 00:00:00 2001 From: LucĂ­a Andrea Illanes Albornoz Date: Mar 20 2023 06:20:22 +0000 Subject: subr.ex/ex_pkg_dispatch.subr:exp_pkg_dispatch_group(): abort on failure and no -R. --- diff --git a/subr.ex/ex_pkg_dispatch.subr b/subr.ex/ex_pkg_dispatch.subr index 217bd36..be74359 100644 --- a/subr.ex/ex_pkg_dispatch.subr +++ b/subr.ex/ex_pkg_dispatch.subr @@ -164,6 +164,11 @@ exp_pkg_dispatch_group() { "${_epdg_dispatch_fn}" \ fail_pkg ${_epdg_pipe_msg#fail } \ "${_epdg_dispatch_count_max}"; + + if [ "${_epdg_rc}" -ne 0 ]\ + && [ "${_epdg_continue_on_failfl}" -ne 1 ]; then + break; + fi; ;; msg_pkg)