From fa3350b06aafd130e11ad6e9b148a22e3b7f8365 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 1 Jun 2015 16:57:19 +0100 Subject: [PATCH] Altered if to follow LGSM standard --- functions/fn_update_dl | 6 +++++- functions/fn_validate | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/functions/fn_update_dl b/functions/fn_update_dl index 331a20fa9..c7c8da8c3 100644 --- a/functions/fn_update_dl +++ b/functions/fn_update_dl @@ -26,7 +26,11 @@ if [ $(command -v unbuffer) ]; then fi ${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_update "${appid}" +quit|tee -a "${scriptlog}" -if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then echo -e '\n'; fn_csgofix; fi + +if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then + echo -e '\n' + fn_csgofix +fi } fn_teamspeak3_dl(){ diff --git a/functions/fn_validate b/functions/fn_validate index a21391e65..1850d6f67 100644 --- a/functions/fn_validate +++ b/functions/fn_validate @@ -30,7 +30,10 @@ if [ $(command -v unbuffer) ]; then fi ${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_update "${appid}" validate +quit|tee -a "${scriptlog}" -if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then echo -e '\n'; fn_csgofix; fi +if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then + echo -e '\n' + fn_csgofix +fi fn_scriptlog "Checking complete" }