You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo -e "${YELLOW}${ICON_DRY_RUN}${NC}${display_name} · would remove ${#stale_dirs[@]} old versions (${stale_size_human}), keeping ${keep_count} most recent"
412
+
note_activity
413
+
return 0
414
+
fi
415
+
416
+
# Remove old versions
417
+
local removed_count=0
418
+
forstale_entryin"${stale_dirs[@]}";do
419
+
if should_protect_path "$stale_entry"|| is_path_whitelisted "$stale_entry";then
420
+
continue
421
+
fi
422
+
if safe_remove "$stale_entry";then
423
+
removed_count=$((removed_count +1))
424
+
fi
425
+
done
426
+
427
+
if [[ $removed_count-gt 0 ]];then
428
+
echo -e "${GREEN}${ICON_SUCCESS}${NC}${display_name} · removed ${removed_count} old versions, ${stale_size_human}"
429
+
note_activity
430
+
fi
431
+
432
+
# Still clean caches/logs inside the kept versions
433
+
safe_clean "$ds_dir"/*/Symbols/System/Library/Caches/*"$display_name symbol cache"
434
+
safe_clean "$ds_dir"/*.log "$display_name logs"
435
+
}
436
+
342
437
_sim_runtime_mount_points() {
343
438
if [[ -n"${MOLE_XCODE_SIM_RUNTIME_MOUNT_POINTS:-}" ]];then
0 commit comments