|
|
@@ -17,7 +17,7 @@ fn_update_steamcmd_dl(){
|
|
|
fn_print_ok_nl "SteamCMD"
|
|
|
fn_script_log_info "Starting SteamCMD"
|
|
|
|
|
|
- cd "${rootdir}/steamcmd"
|
|
|
+ cd "${steamcmddir}"
|
|
|
|
|
|
# Detects if unbuffer command is available for 32 bit distributions only.
|
|
|
info_distro.sh
|
|
|
@@ -25,6 +25,7 @@ fn_update_steamcmd_dl(){
|
|
|
unbuffer="stdbuf -i0 -o0 -e0"
|
|
|
fi
|
|
|
|
|
|
+ cd "${steamcmddir}"
|
|
|
if [ "${engine}" == "goldsource" ]; then
|
|
|
${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_set_config 90 mod ${appidmod} +app_update "${appid}" ${branch} +quit | tee -a "${scriptlog}"
|
|
|
else
|
|
|
@@ -146,7 +147,7 @@ fn_update_steamcmd_check(){
|
|
|
currentbuild=$(grep buildid "${appmanifestfile}" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -d\ -f3)
|
|
|
|
|
|
# Removes appinfo.vdf as a fix for not always getting up to date version info from SteamCMD
|
|
|
- cd "${rootdir}/steamcmd"
|
|
|
+
|
|
|
if [ -f "${HOME}/Steam/appcache/appinfo.vdf" ]; then
|
|
|
rm -f "${HOME}/Steam/appcache/appinfo.vdf"
|
|
|
fi
|
|
|
@@ -160,6 +161,7 @@ fn_update_steamcmd_check(){
|
|
|
fi
|
|
|
|
|
|
# Gets availablebuild info
|
|
|
+ cd "${steamcmddir}"
|
|
|
availablebuild=$(./steamcmd.sh +login "${steamuser}" "${steampass}" +app_info_update 1 +app_info_print "${appid}" +app_info_print "${appid}" +quit | sed -n '/branch/,$p' | grep -m 1 buildid | tr -cd '[:digit:]')
|
|
|
if [ -z "${availablebuild}" ]; then
|
|
|
fn_print_fail "Checking for update: SteamCMD"
|