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

🎨 Add cache whitelist for large models

This commit is contained in:
Tw93
2025-10-04 19:39:15 +08:00
parent 5d619d79a2
commit 4ac01b2260
3 changed files with 20 additions and 4 deletions

View File

@@ -13,7 +13,10 @@ SYSTEM_CLEAN=false
DRY_RUN=false
IS_M_SERIES=$([ "$(uname -m)" = "arm64" ] && echo "true" || echo "false")
# Default whitelist patterns to avoid removing critical caches (can be extended by user)
WHITELIST_PATTERNS=("$HOME/Library/Caches/ms-playwright*")
WHITELIST_PATTERNS=(
"$HOME/Library/Caches/ms-playwright*"
"$HOME/.cache/huggingface*"
)
# Load user-defined whitelist file if present (~/.config/mole/whitelist)
if [[ -f "$HOME/.config/mole/whitelist" ]]; then
while IFS= read -r line; do