mirror of
https://github.com/tw93/Mole.git
synced 2026-03-24 10:35:07 +00:00
fix: keep dry-run yellow and align clean output colors
Keep dry-run previews yellow while reusing the 1 GiB threshold for actual cleanup results across clean modules. Add regression coverage for the shared color helper and DS_Store cleanup output.
This commit is contained in:
@@ -309,7 +309,9 @@ clean_time_machine_failed_backups() {
|
||||
continue
|
||||
fi
|
||||
if tmutil delete "$inprogress_file" 2> /dev/null; then
|
||||
echo -e " ${GREEN}${ICON_SUCCESS}${NC} Incomplete backup: $backup_name${NC}, ${GREEN}$size_human${NC}"
|
||||
local line_color
|
||||
line_color=$(cleanup_result_color_kb "$size_kb")
|
||||
echo -e " ${line_color}${ICON_SUCCESS}${NC} Incomplete backup: $backup_name${NC}, ${line_color}$size_human${NC}"
|
||||
tm_cleaned=$((tm_cleaned + 1))
|
||||
files_cleaned=$((files_cleaned + 1))
|
||||
total_size_cleaned=$((total_size_cleaned + size_kb))
|
||||
@@ -360,7 +362,9 @@ clean_time_machine_failed_backups() {
|
||||
continue
|
||||
fi
|
||||
if tmutil delete "$inprogress_file" 2> /dev/null; then
|
||||
echo -e " ${GREEN}${ICON_SUCCESS}${NC} Incomplete APFS backup in $bundle_name: $backup_name${NC}, ${GREEN}$size_human${NC}"
|
||||
local line_color
|
||||
line_color=$(cleanup_result_color_kb "$size_kb")
|
||||
echo -e " ${line_color}${ICON_SUCCESS}${NC} Incomplete APFS backup in $bundle_name: $backup_name${NC}, ${line_color}$size_human${NC}"
|
||||
tm_cleaned=$((tm_cleaned + 1))
|
||||
files_cleaned=$((files_cleaned + 1))
|
||||
total_size_cleaned=$((total_size_cleaned + size_kb))
|
||||
|
||||
Reference in New Issue
Block a user