Avoid Finder window flash during install

Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
This commit is contained in:
Dan Luhring 2020-11-11 17:19:53 -05:00
parent cd56214ada
commit 08717dcfcc
No known key found for this signature in database
GPG key ID: 9CEE23D079426CEF

View file

@ -243,7 +243,7 @@ unpack() {
extract_from_dmg() {
dmg_file=$1
mount_point="/Volumes/tmp-dmg"
hdiutil attach -quiet -mountpoint "${mount_point}" "${dmg_file}"
hdiutil attach -quiet -nobrowse -mountpoint "${mount_point}" "${dmg_file}"
cp -fR "${mount_point}/" ./
hdiutil detach -quiet -force "${mount_point}"
}