From 75f3f59b1416053ff7a07299a63404ed440fa827 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 9 Dec 2015 21:31:37 +0000 Subject: [PATCH] Added error check for steamcmd. --- functions/fn_install_serverfiles | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/fn_install_serverfiles b/functions/fn_install_serverfiles index 961106370..80dc7a3dc 100644 --- a/functions/fn_install_serverfiles +++ b/functions/fn_install_serverfiles @@ -10,6 +10,10 @@ counter="0" while [ "${counter}" == "0" ]||[ "$(grep -wc 0x402 .fn_install_serverfiles.tmp)" -ge "1" ]||[ "$(grep -wc 0x406 .fn_install_serverfiles.tmp)" -ge "1" ]||[ "$(grep -wc 0x6 .fn_install_serverfiles.tmp)" -ge "1" ]||[ "$(grep -wc 0x106 .fn_install_serverfiles.tmp)" -ge "1" ]; do counter=$((counter+1)) cd "${rootdir}/steamcmd" + ./steamcmd.sh +quit > /dev/null 2>&1 + if [[ $? != 0 ]]; then + fn_printfailurenl "Cannot start SteamCMD. Are dependencies installed?" + fi if [ "${counter}" -le "10" ]; then # Attempt 1-4: Standard attempt # Attempt 5-6: Validate attempt