1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-23 17:35:10 +00:00

fix(log): preserve Mole runtime logs during clean

This commit is contained in:
Tw93
2026-03-19 09:52:27 +08:00
parent 3b46b4ade6
commit 584e10cdc4
6 changed files with 107 additions and 26 deletions

View File

@@ -802,6 +802,10 @@ should_protect_path() {
*/Library/Preferences/com.apple.dock.plist | */Library/Preferences/com.apple.finder.plist)
return 0
;;
# Protect Mole's own runtime logs so cleanup cannot delete its active log targets.
*/Library/Logs/mole | */Library/Logs/mole/ | */Library/Logs/mole/*)
return 0
;;
# Bluetooth and WiFi configurations
*/ByHost/com.apple.bluetooth.* | */ByHost/com.apple.wifi.*)
return 0