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

now correctly checks if gamelogdir is missing and needs installing

Daniel Gibbs 9 лет назад
Родитель
Сommit
28b5d3ff5a
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      lgsm/functions/check_logs.sh

+ 3 - 2
lgsm/functions/check_logs.sh

@@ -20,7 +20,8 @@ if [ ! -d "${lgsmlogdir}" ]||[ ! -d "${consolelogdir}" ]&&[ "${gamename}" != "Te
 	fn_check_logs
 	fn_check_logs
 fi
 fi
 
 
-# Create gamelogdir if variable exist but dir does not exist
-if [ -n "${gamelogdir}" ]&&[ ! -d "${gamelogdir}" ]; then
+# Create gamelogdir
+# If variable exists gamelogdir exists and log/server does not
+if [ -n "${gamelogdir}" ]&&[ -d "${gamelogdir}" ]&&[ ! -d "${logdir}/server" ]; then
 	fn_check_logs
 	fn_check_logs
 fi
 fi