1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 20:19:45 +00:00

test: fix empty directory cleanup depth and remove obsolete spinner test

This commit is contained in:
Tw93
2026-01-03 13:37:53 +08:00
parent a57cd22abf
commit 5ee7d2d703
2 changed files with 3 additions and 13 deletions

View File

@@ -42,8 +42,8 @@ clean_empty_library_items() {
for location in "${key_locations[@]}"; do
[[ -d "$location" ]] || continue
# Limit passes to keep cleanup fast; one extra pass catches most parents.
local max_iterations=2
# Limit passes to keep cleanup fast; 3 iterations handle most nested scenarios.
local max_iterations=3
local iteration=0
while [[ $iteration -lt $max_iterations ]]; do