Explorar o código

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
lrob %!s(int64=10) %!d(string=hai) anos
pai
achega
f25bc42f63
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      functions/logs.sh

+ 1 - 1
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)