how to automatically accept license with mounting mac osx .dmg files from command line?
- by Vitaly Kushner
Im automating my mac installation using 'puppet'. as a part of it I need to install several programs that come in a .dmg format.
I use the following to mount them:
sudo /usr/bin/hdiutil mount -plist -nobrowse -readonly -quiet -mountrandom /tmp Program.dmg
The problem is that some .dmg files come with a license attached, and so script is stuck accepting the license. (there is no stdin/out when running with puppet, so I can't manually approve it to continue).
Is there a way to pre-approve or force-approve the license?