I'm using the open
command to automate (via bash) opening a dmg which has a EULA attached to it. When I run open my_app_distribution.dmg
I get a screen that looks like this:
The open
commands uses another app/core service to handle the actual mounting, but it nor the open
command has any output (or exit code afaik) by default nor do they seem to have a way to change that default behavior.
How can I report back to my bash script which button was clicked so I can determine the next course of action my script will take?