Remove duplicate log file creation if not found

This commit is contained in:
icenine451 2024-03-28 14:27:20 -04:00
parent e03234548c
commit 709908f06a

View file

@ -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