echo"ERROR: You have specified ${HOST_DIST} as your host system's distro, but it is missing a meta and/or pkgs profile."
exit1
fi
fi
if[[ -z ${HOST_DIST}]];
then
for dist_profile in $(find ${BASEDIR}/lib/prereqs -type f -name 'meta');
do
source${dist_profile}
if[[${SUPPORTED} !="yes"]];
then
continue
fi
eval"${CHECK_METHOD}" > /dev/null 2>&1
if[["${?}"=="0"]];
then
exportHOST_DIST=${NAME}
echo"Detected distro as ${HOST_DIST}."
break2
fi
done
fi
# So we've validated the distro. Here, check for packages and install if necessary. maybe use an array, but it'd be better to soft-fail if one of the packages is missing.