mac: mitigate "device busy" chances when ejecting DMG

This commit is contained in:
Robin Gareus 2024-11-22 15:59:07 +01:00
parent 4fbdf0d680
commit 4e55570934
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -1088,6 +1088,7 @@ fi
osascript << EOF osascript << EOF
tell application "Finder" tell application "Finder"
close every window
activate activate
tell disk "${DISKNAME}" tell disk "${DISKNAME}"
open open
@ -1126,6 +1127,8 @@ EOF
chmod -Rf go-w "${MNTPATH}" chmod -Rf go-w "${MNTPATH}"
sync sync
sleep 1
sync
set -e set -e
echo "compressing Image ..." echo "compressing Image ..."