From 0f39ce29b8e5756692be0a5f8293d22299c6128a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Fri, 14 Feb 2020 14:49:28 +0000 Subject: subr/ex_pkg_dispatch.subr:exp_pkg_dispatch_package(): correctly reference ${ARG_RESTART_RECURSIVE}. --- subr/ex_pkg_dispatch.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subr/ex_pkg_dispatch.subr') diff --git a/subr/ex_pkg_dispatch.subr b/subr/ex_pkg_dispatch.subr index 3680b279..e2e7e1b0 100644 --- a/subr/ex_pkg_dispatch.subr +++ b/subr/ex_pkg_dispatch.subr @@ -49,7 +49,7 @@ exp_pkg_dispatch_package() { "${_dispatch_fn}" disabled_pkg "${_group_name}" "${_pkg_name}" "${_pkgs_count}" "${_pkgs_count_max}"; elif ex_pkg_state_test "${_pkg_name}" finish\ && [ -z "$(ex_rtl_lsearch "${_restart}" "${_pkg_name}")" ]\ - && [ "${ARG_RESTART_RECURSIVE}" -ne 2 ]; then + && [ "${ARG_RESTART_RECURSIVE:-0}" -ne 2 ]; then _pkgs_complete="${_pkgs_complete:+${_pkgs_complete} }${_pkg_name}"; _pkg_names="$(ex_rtl_lfilter "${_pkg_names}" "${_pkg_name}")"; : $((_pkgs_count+=1)); _rc=1; -- cgit v1.2.3