diff --git a/functions/logs.sh b/functions/logs.sh index be1ae119d..ec21d3241 100644 --- a/functions/logs.sh +++ b/functions/logs.sh @@ -17,8 +17,8 @@ if [ -n "${consolelog}" ]; then fi # For games not displaying a console, and having logs into their game folder -if [ -n ${gamelogfile} ]; then - if [ -n $(find ${systemdir} -name gamelog*.log ) ]; then +if [ -n "${gamelogfile}" ]; then + if [ -n "$(find "${systemdir}" -name gamelog*.log)" ]; then fn_printinfo "Moving game logs to ${gamelogdir}" fn_scriptlog "Moving game logs to ${gamelogdir}" echo -en "\n"