diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2019-01-19 20:09:26 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2019-01-19 20:09:26 +0000 |
commit | 00c762797be0198a7037dcbf15ddf006c9440d38 (patch) | |
tree | 2534b9511bec5ea5ca32add6517057903e4b96db | |
parent | b376ae8e9202fd6c73b8c8ef4f547c9ec1a33cd1 (diff) | |
download | midipix_build-00c762797be0198a7037dcbf15ddf006c9440d38.tar.bz2 midipix_build-00c762797be0198a7037dcbf15ddf006c9440d38.tar.xz |
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.
-rwxr-xr-x | build.sh | 2 | ||||
-rw-r--r-- | subr/ex_pkg_dispatch.subr | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -30,7 +30,7 @@ buildp_dispatch() { ex_rtl_log_msg failexit "Error: package \`${_pkg_restart}' unknown."; fi; done; - if ! ex_pkg_dispatch "invariants" "ALL" "ALL" buildp_dispatch; then + if ! ex_pkg_dispatch "invariants" "ALL" "ALL" buildp_dispatch ""; then break; fi; buildp_dispatch finish_build; ;; 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 |