mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-24 23:15:39 +00:00
Remove duplicate log file creation if not found
This commit is contained in:
parent
e03234548c
commit
709908f06a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue