1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-06 17:47:57 +00:00

feat: Skip TimeMachine cleaning if running

This commit is contained in:
Jack Phallen
2026-01-10 17:37:29 -05:00
parent d45423df94
commit c0f76936cd
3 changed files with 59 additions and 1 deletions

View File

@@ -100,6 +100,9 @@ run_with_timeout() { return 1; }
clean_ds_store_tree() { :; }
start_section_spinner() { :; }
stop_section_spinner() { :; }
is_path_whitelisted() { return 1; }
WHITELIST_PATTERNS=()
PROTECT_FINDER_METADATA="false"
scan_external_volumes
EOF

View File

@@ -125,6 +125,8 @@ tmutil() {
}
start_section_spinner(){ :; }
stop_section_spinner(){ :; }
tm_is_running(){ return 1; }
tm_snapshots_mounted(){ return 1; }
DRY_RUN="false"
clean_local_snapshots
@@ -154,6 +156,8 @@ tmutil() {
start_section_spinner(){ :; }
stop_section_spinner(){ :; }
note_activity(){ :; }
tm_is_running(){ return 1; }
tm_snapshots_mounted(){ return 1; }
DRY_RUN="true"
clean_local_snapshots
@@ -188,6 +192,8 @@ tmutil() {
start_section_spinner(){ :; }
stop_section_spinner(){ :; }
note_activity(){ :; }
tm_is_running(){ return 1; }
tm_snapshots_mounted(){ return 1; }
unset -f read_key