From a4d33fe8c32cce231ce2f08840ccb86f660f6478 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 25 Dec 2021 23:50:28 -0600 Subject: [PATCH] Spelling mistakes, match glob for Centos & Ubuntu --- Scripts/install-requirements.bash | 4 ++-- install.bash | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/install-requirements.bash b/Scripts/install-requirements.bash index 7043df7..ea25e3e 100644 --- a/Scripts/install-requirements.bash +++ b/Scripts/install-requirements.bash @@ -54,9 +54,9 @@ main() { # This gets the unquoted os-release name OS_RELEASE="$(grep ^NAME= /etc/os-release | cut -d "=" -f2 | tr -d '"')" - if [[ "${OS_RELEASE}" = "CentOS Linux" ]]; then + if [[ "${OS_RELEASE}" = *"CentOS"* ]]; then install_method_centos || exit - elif [[ "${OS_RELEASE}" = "Ubuntu" ]]; then + elif [[ "${OS_RELEASE}" = *"Ubuntu"* ]]; then install_method_ubuntu || exit else echo "${OS_RELEASE} is not a supported distribution, attempt a manual installation." diff --git a/install.bash b/install.bash index 7fcdbd4..38a69e5 100644 --- a/install.bash +++ b/install.bash @@ -1,7 +1,7 @@ #!/bin/bash BASE_DIR="${1}" -SCRIPT_DIR="${BASE_DIR}/Sripts/" +SCRIPT_DIR="${BASE_DIR}/Scripts/" [[ -z "${BASE_DIR}" ]] && echo "No base directory provided in arg 1" && exit 1 @@ -9,4 +9,4 @@ SCRIPT_DIR="${BASE_DIR}/Sripts/" sudo su || exit 1 sudo /bin/bash "${SCRIPT_DIR}/install-requirements.bash" -sduo /bin/bash "${SCRIPT_DIR}/install-steamcmd.bash" +sudo /bin/bash "${SCRIPT_DIR}/install-steamcmd.bash"