changed disk image mount to work with images that need agreement

This commit is contained in:
Armin Briegel
2020-03-11 17:01:42 +01:00
parent 1e0d6d8be0
commit 12f4566caf

View File

@@ -36,7 +36,7 @@ if [ "$archiveExt" = "pkg" ]; then
elif [ "$archiveExt" = "dmg" ]; then
# mount the dmg
echo "Mounting $archiveName"
if ! dmgmount=$(hdiutil attach "$archiveName" -nobrowse -readonly | tail -n 1 | cut -c 54- ); then
if ! dmgmount=$(echo "Y"$'\n' | hdiutil attach "$archiveName" -nobrowse -readonly | tail -n 1 | cut -c 54- ); then
echo "Error mounting $archiveName"
exit 3
fi