From 28b5d3ff5a2cb912ccee122edf1aceccc7b0419e Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 15 May 2017 21:46:07 +0100 Subject: [PATCH] now correctly checks if gamelogdir is missing and needs installing --- lgsm/functions/check_logs.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/check_logs.sh b/lgsm/functions/check_logs.sh index c57d7ebbf..f82d7babd 100644 --- a/lgsm/functions/check_logs.sh +++ b/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