This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| dmg_path="$1" | |
| # use process redirection to capture the mount point and dev entry | |
| IFS=$'\n' read -rd '\n' mount_point dev_entry < <( | |
| # mount the diskimage (leave out -readonly if making changes to the file system) | |
| hdiutil attach -readonly -plist "$dmg_path" | \ |