mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-28 16:45:42 +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
|
else
|
||||||
logfile="$rd_logs_folder/retrodeck.log"
|
logfile="$rd_logs_folder/retrodeck.log"
|
||||||
fi
|
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
|
# Check if the shell is sh (not bash or zsh) to avoid colorization
|
||||||
if [ "${SHELL##*/}" = "sh" ]; then
|
if [ "${SHELL##*/}" = "sh" ]; then
|
||||||
|
|
Loading…
Reference in a new issue