Bypass a licence agreement when mounting a DMG on the command line
Posted
by
Vitaly Kushner
on Super User
See other posts from Super User
or by Vitaly Kushner
Published on 2010-12-12T04:33:43Z
Indexed on
2013/11/04
10:02 UTC
Read the original article
Hit count: 356
I'm 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?
© Super User or respective owner