From e03234548cfbe507aa6a15fe2666f4bc4a08843e Mon Sep 17 00:00:00 2001 From: icenine451 Date: Thu, 28 Mar 2024 14:06:40 -0400 Subject: [PATCH] Skip creating logs folder during finit as it is already created earlier --- functions/prepare_component.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/prepare_component.sh b/functions/prepare_component.sh index f93c9961..51b625e2 100644 --- a/functions/prepare_component.sh +++ b/functions/prepare_component.sh @@ -22,7 +22,9 @@ prepare_component() { if [[ ! $current_setting_name =~ (rdhome|sdcard) ]]; then # Ignore these locations local current_setting_value=$(get_setting_value "$rd_conf" "$current_setting_name" "retrodeck" "paths") declare -g "$current_setting_name=$rdhome/$(basename $current_setting_value)" - create_dir "$rdhome/$(basename $current_setting_value)" + if [[ ! $current_setting_name == "logs_folder" ]]; then # Don't create this folder, as it has already been created internally and is linked later + create_dir "$rdhome/$(basename $current_setting_value)" + fi fi done < <(grep -v '^\s*$' $rd_conf | awk '/^\[paths\]/{f=1;next} /^\[/{f=0} f') create_dir "/var/config/retrodeck/godot"