|
@@ -16,7 +16,7 @@ if [ -n "${consolelog}" ]; then
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
# Set source logs directories
|
|
# Set source logs directories
|
|
|
-if [ -z "${systemdir}" && "${engine}" == "source" ]; then
|
|
|
|
|
|
|
+if [ -z "${systemdir}" ]&&[ "${engine}" == "source" ]; then
|
|
|
srcdslogdir="${systemdir}/logs"
|
|
srcdslogdir="${systemdir}/logs"
|
|
|
# Set addons directories
|
|
# Set addons directories
|
|
|
sourcemodlogdir="${systemdir}/addons/sourcemod/logs"
|
|
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 {} \;
|
|
find "${sourcemodlogdir}"/ -mtime +${logdays} -type f -exec rm -f {} \;
|
|
|
fi
|
|
fi
|
|
|
# ULX logfiles
|
|
# ULX logfiles
|
|
|
- if [ "${gamename}" == "Garry's Mod" ]
|
|
|
|
|
|
|
+ if [ "${gamename}" == "Garry's Mod" ]; then
|
|
|
if [ -d "${ulxlogdir}" ]; then
|
|
if [ -d "${ulxlogdir}" ]; then
|
|
|
find "${ulxlogdir}"/ -type f -mtime +${logdays}|tee >> "${scriptlog}"
|
|
find "${ulxlogdir}"/ -type f -mtime +${logdays}|tee >> "${scriptlog}"
|
|
|
ulxcount=$(find "${ulxlogdir}"/ -type f -mtime +${logdays}|wc -l)
|
|
ulxcount=$(find "${ulxlogdir}"/ -type f -mtime +${logdays}|wc -l)
|