9f66ec
List all missing prerequisite commands if one or more are missing.
@@ -155,9 +155,12 @@ check_path_vars() {
|
|
155
155
|
check_prereqs() {
|
156
156
|
while [ ${#} -gt 0 ]; do
|
157
157
|
if ! command -v ${1} >/dev/null; then
|
158
|
-
|
158
|
+
_cp_missing_list="${1}${_cp_missing_list:+ ${_cp_missing_list}}";
|
159
159
|
fi; shift;
|
160
160
|
done;
|
161
|
+
if [ -n "${_cp_missing_list}" ]; then
|
162
|
+
log_msg failexit "Error: missing prerequisite command(s): ${_cp_missing_list}.";
|
163
|
+
fi; unset _cp_missing_list;
|
161
164
|
};
|
162
165
|
|
163
166
|
# Clear the environment by unsetting each exported variable except
|