diff --git a/functions/fn_logs b/functions/fn_logs index ce3c79a2a..6518eeaa1 100644 --- a/functions/fn_logs +++ b/functions/fn_logs @@ -36,9 +36,13 @@ if [ $(find "${scriptlogdir}"/* -mtime +${logdays}|wc -l) -ne "0" ]; then gamecount=$(find "${scriptlogdir}"/* -mtime +${logdays}|wc -l) fi scriptcount=$(find "${scriptlogdir}"/* -mtime +${logdays}|wc -l) + echo "${consolelog}" if [ -n "${consolelog}" ]; then consolecount=$(find "${consolelogdir}"/* -mtime +${logdays}|wc -l) + else + consolecount=0 fi + count=$((${scriptcount} + ${consolecount})) if [ "${engine}" == "unreal2" ]; then count=$((${scriptcount} + ${consolecount} + ${gamecount}))