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

feat: Expand critical system component protection in clean user logic and apply minor shell script fixes.

This commit is contained in:
Tw93
2025-12-17 20:42:25 +08:00
parent 611254848d
commit 0427dbb6c0
4 changed files with 6 additions and 5 deletions

View File

@@ -121,7 +121,7 @@ clean_sandboxed_app_caches() {
local bundle_id_lower=$(echo "$bundle_id" | tr '[:upper:]' '[:lower:]')
# Check explicit critical system components (case-insensitive regex)
if [[ "$bundle_id_lower" =~ backgroundtaskmanagement || "$bundle_id_lower" =~ loginitems ]]; then
if [[ "$bundle_id_lower" =~ backgroundtaskmanagement || "$bundle_id_lower" =~ loginitems || "$bundle_id_lower" =~ systempreferences || "$bundle_id_lower" =~ controlcenter || "$bundle_id_lower" =~ biometrickit || "$bundle_id_lower" =~ sfl || "$bundle_id_lower" =~ tcc ]]; then
continue
fi
@@ -262,7 +262,7 @@ clean_application_support_logs() {
continue
fi
if [[ "$app_name" =~ backgroundtaskmanagement || "$app_name" =~ loginitems ]]; then
if [[ "$app_name_lower" =~ backgroundtaskmanagement || "$app_name_lower" =~ loginitems || "$app_name_lower" =~ systempreferences || "$app_name_lower" =~ controlcenter || "$app_name_lower" =~ biometrickit || "$app_name_lower" =~ sfl || "$app_name_lower" =~ tcc ]]; then
continue
fi