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

Fix optimize compatibility at some times

This commit is contained in:
Tw93
2025-12-03 13:56:14 +08:00
parent 5fce82719f
commit a5c5a8d7af
3 changed files with 15 additions and 6 deletions

View File

@@ -213,8 +213,11 @@ clean_application_support_logs() {
app_name=$(basename "$app_dir")
# Skip system and protected apps
case "$app_name" in
com.apple.* | Adobe* | JetBrains* | 1Password | Claude | *ClashX* | *clash* | mihomo* | *Surge* | iTerm* | *iterm* | Warp* | Kitty* | Alacritty* | WezTerm* | Ghostty*)
# Convert to lowercase for case-insensitive matching
local app_name_lower
app_name_lower=$(echo "$app_name" | tr '[:upper:]' '[:lower:]')
case "$app_name_lower" in
com.apple.* | adobe* | jetbrains* | 1password | claude | *clashx* | *clash* | mihomo* | *surge* | iterm* | warp* | kitty* | alacritty* | wezterm* | ghostty*)
continue
;;
esac