1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-07 11:38:28 +00:00

Move the system maintenance in the cleaning to optimize

This commit is contained in:
Tw93
2025-12-06 20:37:36 +08:00
parent 8fa3a2c9c5
commit 074f447269
4 changed files with 86 additions and 81 deletions

View File

@@ -19,7 +19,6 @@ source "$SCRIPT_DIR/../lib/clean/dev.sh"
source "$SCRIPT_DIR/../lib/clean/app_caches.sh"
source "$SCRIPT_DIR/../lib/clean/system.sh"
source "$SCRIPT_DIR/../lib/clean/user.sh"
source "$SCRIPT_DIR/../lib/clean/maintenance.sh"
# Configuration
SYSTEM_CLEAN=false
@@ -869,11 +868,6 @@ perform_cleanup() {
clean_time_machine_failed_backups
end_section
# ===== 16. System maintenance =====
start_section "System maintenance"
# Broken preferences and login items cleanup (delegated to clean_maintenance module)
clean_maintenance
end_section
# ===== Final summary =====
echo ""

View File

@@ -8,6 +8,7 @@ source "$SCRIPT_DIR/lib/core/common.sh"
source "$SCRIPT_DIR/lib/core/sudo.sh"
source "$SCRIPT_DIR/lib/manage/update.sh"
source "$SCRIPT_DIR/lib/manage/autofix.sh"
source "$SCRIPT_DIR/lib/optimize/maintenance.sh"
source "$SCRIPT_DIR/lib/optimize/tasks.sh"
# Load check modules