From 744e57dfa11c5cd2cc78fec2c0ddfec17fe39aeb Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 26 Dec 2021 00:04:33 -0600 Subject: [PATCH] Evaluation of saved installer var --- Scripts/install-requirements.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/install-requirements.bash b/Scripts/install-requirements.bash index 85b8c5c..54b1fba 100644 --- a/Scripts/install-requirements.bash +++ b/Scripts/install-requirements.bash @@ -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"