Evaluation of saved installer var

This commit is contained in:
Price Hiller 2021-12-26 00:04:33 -06:00
parent 416c6aaf78
commit 744e57dfa1

View File

@ -24,7 +24,7 @@ install_method_centos() {
fi
echo "Installing epel-release, NOT fully configured..., see: https://docs.fedoraproject.org/en-US/epel/"
sleep 3
"${INSTALLER}" epel-release
$("${INSTALLER} epel-release") 2>/dev/null
}
install_method_ubuntu() {
@ -55,9 +55,9 @@ main() {
OS_RELEASE="$(grep ^NAME= /etc/os-release | cut -d "=" -f2 | tr -d '"')"
if [[ "${OS_RELEASE}" = *"CentOS"* ]]; then
install_method_centos || exit
install_method_centos
elif [[ "${OS_RELEASE}" = *"Ubuntu"* ]]; then
install_method_ubuntu || exit
install_method_ubuntu
else
echo "${OS_RELEASE} is not a supported distribution, attempt a manual installation."
exit 1
@ -70,7 +70,7 @@ main() {
for pkg in "${INSTALL_PACKAGES[@]}"; do
echo "Installing ${pkg}"
"${INSTALLER}" "${pkg}"
"$(${INSTALLER} "${pkg}")"
done
echo "Finished installing general module items"