From 00c762797be0198a7037dcbf15ddf006c9440d38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Sat, 19 Jan 2019 20:09:26 +0000 Subject: build.sh:buildp_dispatch(): correctly call ex_pkg_dispatch(). subr/ex_pkg_dispatch.subr:ex_pkg_dispatch(): only set ${${_pkgs_found_vname}} if non-zero. --- subr/ex_pkg_dispatch.subr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'subr/ex_pkg_dispatch.subr') diff --git a/subr/ex_pkg_dispatch.subr b/subr/ex_pkg_dispatch.subr index 45653b4f..9a06fd39 100644 --- a/subr/ex_pkg_dispatch.subr +++ b/subr/ex_pkg_dispatch.subr @@ -101,7 +101,9 @@ ex_pkg_dispatch() { fi; done; "${_dispatch_fn}" finish_target "" "${_tgt_name}"; - ex_rtl_set_var_unsafe "${_pkgs_found_vname}" "${_pkgs_found}"; + if [ -n "${_pkgs_found_vname}" ]; then + ex_rtl_set_var_unsafe "${_pkgs_found_vname}" "${_pkgs_found}"; + fi; }; # vim:filetype=sh -- cgit v1.2.3