mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05: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"
|
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
|
||||||
|
|
Loading…
Reference in a new issue