Fix incorrect rm command from removal of empty rom folders

This commit is contained in:
icenine451 2024-06-20 13:53:41 -04:00
parent 9357db8863
commit 858b4f16ab

View file

@ -615,13 +615,13 @@ configurator_retrodeck_tools_dialog() {
IFS="," read -ra folders_to_remove <<< "$choice" IFS="," read -ra folders_to_remove <<< "$choice"
for folder in "${folders_to_remove[@]}"; do for folder in "${folders_to_remove[@]}"; do
log i "Removing empty folder $folder" log i "Removing empty folder $folder"
rm -f "$folder" rm -rf "$folder"
done done
configurator_generic_dialog "RetroDECK Configurator - Remove Empty ROM Folders" "The removal process is complete." configurator_generic_dialog "RetroDECK Configurator - Remove Empty ROM Folders" "The removal process is complete."
elif [[ ! -z $choice ]]; then # User clicked "Remove All" elif [[ ! -z $choice ]]; then # User clicked "Remove All"
for folder in "${all_empty_folders[@]}"; do for folder in "${all_empty_folders[@]}"; do
log i "Removing empty folder $folder" log i "Removing empty folder $folder"
rm -f "$folder" rm -rf "$folder"
done done
configurator_generic_dialog "RetroDECK Configurator - Remove Empty ROM Folders" "The removal process is complete." configurator_generic_dialog "RetroDECK Configurator - Remove Empty ROM Folders" "The removal process is complete."
fi fi