mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
FRAMEWORK: lockfile issue reverted
This commit is contained in:
parent
cd9a98a87b
commit
b145d81e1e
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue