From 709908f06aecb30851bf2104cd3f2696caa5d08c Mon Sep 17 00:00:00 2001 From: icenine451 Date: Thu, 28 Mar 2024 14:27:20 -0400 Subject: [PATCH] Remove duplicate log file creation if not found --- functions/logger.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/functions/logger.sh b/functions/logger.sh index 08bba936..d37dafb6 100755 --- a/functions/logger.sh +++ b/functions/logger.sh @@ -30,10 +30,6 @@ log() { else logfile="$rd_logs_folder/retrodeck.log" fi - if [[ ! -f "$logfile" ]]; then - touch "$logfile" - echo "$timestamp [WARN] \"$logfile\" not found, creating." - fi # Check if the shell is sh (not bash or zsh) to avoid colorization if [ "${SHELL##*/}" = "sh" ]; then