SIGN IN SIGN UP
tw93 / Mole UNCLAIMED

🐹 Deep clean and optimize your Mac.

0 0 83 Shell

fix(optimize): drop phantom detach offers from non-mount hdiutil lines

opt_diag_parse_image_mount_pairs treated any line in hdiutil info with a
whitespace-prefixed absolute path as a mount point. That included
image-alias, icon-path, and similar metadata fields whose values are
just paths, not real mounts. The most visible symptom (#960) was
seeing the same disk image offered for detach twice, once at the
genuine /Volumes/<name> mount and again with the .dmg's own path as
the apparent mount point.

Tighten extract_mount to only look at /dev/disk* lines, which are the
only entries in hdiutil info that legitimately carry a mount column.
Add two bats cases covering the report's exact pattern and a
multi-block input to guard against regressions.
T
Tw93 committed
aafaee3832784d23a61b3a6ec40b49d430e162b8
Parent: 5a2469d