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

Remove orphaned Homebrew cask cleaning functionality, improve shell safety for cache cleanup, and bump version

This commit is contained in:
Tw93
2025-12-13 14:12:01 +08:00
parent afceb2f596
commit 85005bd9cf
4 changed files with 5 additions and 124 deletions

View File

@@ -137,7 +137,7 @@ clean_sandboxed_app_caches() {
# Clean contents safely
# We know this is a user cache path, so rm -rf is acceptable here
# provided we keep the Cache directory itself
rm -rf "$cache_dir"/* 2> /dev/null || true
rm -rf "${cache_dir:?}"/* 2> /dev/null || true
fi
fi
fi
@@ -247,7 +247,9 @@ clean_application_support_logs() {
is_protected=true
fi
[[ "$is_protected" == "true" ]] && continue
if [[ "$is_protected" == "true" ]]; then
continue
fi
if [[ "$app_name" =~ backgroundtaskmanagement || "$app_name" =~ loginitems ]]; then
continue