From 02f29925588e092af62cb92ef738be20b3a4dafa Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 3 Jun 2015 17:40:18 +0100 Subject: [PATCH] Fixed issue #414 will not cd to steamcmd dir as no longer in the correct dir...might of been caused by changes to another functions. --- functions/fn_install_serverfiles | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/fn_install_serverfiles b/functions/fn_install_serverfiles index a13042b88..413c33acd 100644 --- a/functions/fn_install_serverfiles +++ b/functions/fn_install_serverfiles @@ -2,13 +2,14 @@ # LGSM fn_install_serverfiles function # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 190515 +# Version: 030615 fn_steaminstallcommand(){ fn_check_steamuser 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" if [ "${counter}" -le "10" ]; then # Attempt 1-4: Standard attempt # Attempt 5-6: Validate attempt @@ -76,4 +77,4 @@ if [ -z "${autoinstall}" ]; then * ) echo "Please answer yes or no.";; esac done -fi +fi \ No newline at end of file