From 65d58f6d7d1ed6c965c14989a99deb853f0a301f Mon Sep 17 00:00:00 2001 From: lrob Date: Wed, 10 Feb 2016 14:48:43 +0100 Subject: [PATCH] correcting syntax --- functions/logs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/logs.sh b/functions/logs.sh index 9833b7db0..d295fd72f 100644 --- a/functions/logs.sh +++ b/functions/logs.sh @@ -16,7 +16,7 @@ if [ -n "${consolelog}" ]; then fi # Set source logs directories -if [ -z "${systemdir}" && "${engine}" == "source" ]; then +if [ -z "${systemdir}" ]&&[ "${engine}" == "source" ]; then srcdslogdir="${systemdir}/logs" # Set addons directories sourcemodlogdir="${systemdir}/addons/sourcemod/logs" @@ -73,7 +73,7 @@ if [ $(find "${scriptlogdir}"/ -type f -mtime +${logdays}|wc -l) -ne "0" ]; then find "${sourcemodlogdir}"/ -mtime +${logdays} -type f -exec rm -f {} \; fi # ULX logfiles - if [ "${gamename}" == "Garry's Mod" ] + if [ "${gamename}" == "Garry's Mod" ]; then if [ -d "${ulxlogdir}" ]; then find "${ulxlogdir}"/ -type f -mtime +${logdays}|tee >> "${scriptlog}" ulxcount=$(find "${ulxlogdir}"/ -type f -mtime +${logdays}|wc -l)