FRAMEWORK: lockfile issue reverted

This commit is contained in:
XargonWan 2025-01-20 14:09:11 +09:00
parent cd9a98a87b
commit b145d81e1e

View file

@ -560,15 +560,7 @@ install_retrodeck_controller_profile() {
create_lock() {
# creating RetroDECK's lock file and writing the version in the config file
version=$hard_version
if [[ ! -d "$(dirname "$logfile")" ]]; then
mkdir -p "$(dirname "$logfile")"
fi
if [[ -n "$logfile" ]]; then
touch "$logfile"
else
log w "I wished to touch the logfile but the variable is empty, creating a static \"$rdhome/logs/retrodeck.log\" if not already there"
touch "$rdhome/logs/retrodeck.log" || log w "\"$rdhome/logs/retrodeck.log\" already exists, proceeding"
fi
touch "$lockfile"
conf_write
}