mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-21 21:45:39 +00:00
Fix incorrect rm command from removal of empty rom folders
This commit is contained in:
parent
9357db8863
commit
858b4f16ab
|
@ -615,13 +615,13 @@ configurator_retrodeck_tools_dialog() {
|
|||
IFS="," read -ra folders_to_remove <<< "$choice"
|
||||
for folder in "${folders_to_remove[@]}"; do
|
||||
log i "Removing empty folder $folder"
|
||||
rm -f "$folder"
|
||||
rm -rf "$folder"
|
||||
done
|
||||
configurator_generic_dialog "RetroDECK Configurator - Remove Empty ROM Folders" "The removal process is complete."
|
||||
elif [[ ! -z $choice ]]; then # User clicked "Remove All"
|
||||
for folder in "${all_empty_folders[@]}"; do
|
||||
log i "Removing empty folder $folder"
|
||||
rm -f "$folder"
|
||||
rm -rf "$folder"
|
||||
done
|
||||
configurator_generic_dialog "RetroDECK Configurator - Remove Empty ROM Folders" "The removal process is complete."
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue