diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-06-22 18:11:12 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-06-22 18:11:12 +0000 |
commit | 9f66ec05389916fdd3e79edc93749d18ea920399 (patch) | |
tree | b12e02ba4ec983bfb73bae7a6200d98f6073cc69 | |
parent | 578dff61da9e7f660a41997d27817756d5470bf4 (diff) | |
download | midipix_build-9f66ec05389916fdd3e79edc93749d18ea920399.tar.bz2 midipix_build-9f66ec05389916fdd3e79edc93749d18ea920399.tar.xz |
List all missing prerequisite commands if one or more are missing.
-rw-r--r-- | build.subr | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -155,9 +155,12 @@ check_path_vars() { check_prereqs() { while [ ${#} -gt 0 ]; do if ! command -v ${1} >/dev/null; then - log_msg failexit "Error: missing prerequisite command \`${1}'."; + _cp_missing_list="${1}${_cp_missing_list:+ ${_cp_missing_list}}"; fi; shift; done; + if [ -n "${_cp_missing_list}" ]; then + log_msg failexit "Error: missing prerequisite command(s): ${_cp_missing_list}."; + fi; unset _cp_missing_list; }; # Clear the environment by unsetting each exported variable except |