echo"ERROR: Your distro was not found/detected, or is flagged as unsupported."
exit1
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.
DISTRO_DIR="${BASEDIR}/lib/prereqs/${HOST_DIST}"
META="${DISTRO_DIR}/meta"
PKGLIST="${DISTRO_DIR}/pkgs"
if[["${PRE_RUN}" !='none']];
then
echo"Now updating your local package cache..."
set +e
eval"${PRE_RUN}" >> "${LOGFILE}.${FUNCNAME}" 2>&1
if[["${?}" !="0"]];
then
echo"ERROR: Syncing your local package cache via ${PRE_RUN} command failed."
echo"Please ensure you are connected to the Internet/have repositories configured correctly."