mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 18:34:46 +00:00
fix: enhance local snapshot warning and improve disk space calculation for macOS
This commit is contained in:
@@ -280,7 +280,8 @@ clean_local_snapshots() {
|
||||
|
||||
if [[ "$DRY_RUN" != "true" ]]; then
|
||||
if [[ ! -t 0 ]]; then
|
||||
echo -e " ${YELLOW}!${NC} Local snapshots found, skipping non-interactive mode"
|
||||
echo -e " ${YELLOW}!${NC} ${#snapshots[@]} local snapshot(s) found, skipping non-interactive mode"
|
||||
echo -e " ${YELLOW}${ICON_WARNING}${NC} ${GRAY}Tip: Snapshots may cause Disk Utility to show different 'Available' values${NC}"
|
||||
return 0
|
||||
fi
|
||||
echo -e " ${YELLOW}!${NC} Time Machine local snapshots found"
|
||||
|
||||
Reference in New Issue
Block a user