Просмотр исходного кода

Altered if to follow LGSM standard

Daniel Gibbs 11 лет назад
Родитель
Сommit
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
 
 ${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(){

+ 4 - 1
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"
 }