From 0d65f351b68d1314258c7fc0d47ff23f74aa1c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=ADa=20Andrea=20Illanes=20Albornoz?= Date: Mon, 20 Mar 2023 07:20:22 +0100 Subject: subr.ex/ex_pkg_dispatch.subr:exp_pkg_dispatch_group(): abort on failure and no -R. --- subr.ex/ex_pkg_dispatch.subr | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'subr.ex') diff --git a/subr.ex/ex_pkg_dispatch.subr b/subr.ex/ex_pkg_dispatch.subr index 217bd360..be743593 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) -- cgit v1.2.3