From f25bc42f6373f8b66711b97cafc8a4cdaacf5798 Mon Sep 17 00:00:00 2001 From: lrob Date: Wed, 10 Feb 2016 13:00:14 +0100 Subject: [PATCH] Fix gamecount targetting wrong folder Gamecount should target gamelogdir, not scriptlogdir, as it seems to be for retrocompatibility only, and according to this (line 44) : if [ "${engine}" == "unreal2" ]||[ "${engine}" == "source" ]; then find "${gamelogdir}"/ -type f -mtime +${logdays}|tee >> "${scriptlog}" fi --- functions/logs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/logs.sh b/functions/logs.sh index 68b66989b..885fe7722 100644 --- a/functions/logs.sh +++ b/functions/logs.sh @@ -53,7 +53,7 @@ if [ $(find "${scriptlogdir}"/ -type f -mtime +${logdays}|wc -l) -ne "0" ]; then # Retrocompatibility, for logs directly in /log folder # Count how many script logfiles will be removed if [ "${engine}" == "unreal2" ]||[ "${engine}" == "source" ]; then - gamecount=$(find "${scriptlogdir}"/ -type f -mtime +${logdays}|wc -l) + gamecount=$(find "${gamelogdir}"/ -type f -mtime +${logdays}|wc -l) fi # Count how many script logfiles will be removed scriptcount=$(find "${scriptlogdir}"/ -type f -mtime +${logdays}|wc -l)