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

fix(clean): enhance orphan detection accuracy and safety

- Expand app scan to include Homebrew Cask and Setapp locations
- Add lsappinfo fallback for more reliable running app detection
- Add sensitive data protection patterns (1Password, Keychain, etc.)
- Add mdfind fallback with file-based caching (Bash 3.2 compatible)
This commit is contained in:
Tw93
2026-01-10 08:51:14 +08:00
parent 0a654f365b
commit 273a6b5cf0

View File

@@ -157,10 +157,8 @@ readonly ORPHAN_NEVER_DELETE_PATTERNS=(
"*keepass*" "*KeePass*"
"*dashlane*" "*Dashlane*"
"*enpass*" "*Enpass*"
"*credential*" "*Credential*"
"*token*" "*Token*"
"*wallet*" "*Wallet*"
"*ssh*" "*gpg*" "*gnupg*"
"com.apple.keychain*"
)
# Cache file for mdfind results (Bash 3.2 compatible, no associative arrays)