Spelling mistakes, match glob for Centos & Ubuntu
This commit is contained in:
parent
26e410c694
commit
a4d33fe8c3
@ -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."
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user