From ad9485914c6e82c28ee07cb9f142034d5a6457ee Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 16 Feb 2024 17:20:52 +0100 Subject: [PATCH] LOGGER: symlinked ES-DE log file into logs folder --- functions/logger.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/functions/logger.sh b/functions/logger.sh index f8cceb3b..ce88d573 100755 --- a/functions/logger.sh +++ b/functions/logger.sh @@ -115,3 +115,13 @@ tmplog_merger() { rm "/tmp/retrodeck.log" fi } + +ESDE_source_logs="/var/config/emulationstation/.emulationstation/es_log.txt" +# Check if the source file exists +if [ -e "$ESDE_source_logs" ]; then + # Create the symlink in the logs folder + ln -sf "$source_file" "$logs_folder/ES-DE.log" + log i "ES-DE log file linked to \"$logs_folder/ES-DE.log\"" +else + echo "ES-DE log file not found, not linked" +fi