diff --git a/build.subr b/build.subr index 5093b3e..66e6ff3 100644 --- a/build.subr +++ b/build.subr @@ -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