4
0
Эх сурвалжийг харах

now correctly checks if gamelogdir is missing and needs installing

Daniel Gibbs 9 жил өмнө
parent
commit
28b5d3ff5a

+ 3 - 2
lgsm/functions/check_logs.sh

@@ -20,7 +20,8 @@ if [ ! -d "${lgsmlogdir}" ]||[ ! -d "${consolelogdir}" ]&&[ "${gamename}" != "Te
 	fn_check_logs
 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
 fi