瀏覽代碼

Altered if to follow LGSM standard

Daniel Gibbs 11 年之前
父節點
當前提交
fa3350b06a
共有 2 個文件被更改,包括 9 次插入2 次删除
  1. 5 1
      functions/fn_update_dl
  2. 4 1
      functions/fn_validate

+ 5 - 1
functions/fn_update_dl

@@ -26,7 +26,11 @@ if [ $(command -v unbuffer) ]; then
 fi
 fi
 
 
 ${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_update "${appid}" +quit|tee -a "${scriptlog}"
 ${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(){
 fn_teamspeak3_dl(){

+ 4 - 1
functions/fn_validate

@@ -30,7 +30,10 @@ if [ $(command -v unbuffer) ]; then
 fi
 fi
 
 
 ${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_update "${appid}" validate +quit|tee -a "${scriptlog}"
 ${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"
 fn_scriptlog "Checking complete"
 }
 }