mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 21:02:46 +00:00
changed disk image mount to work with images that need agreement
This commit is contained in:
@@ -36,7 +36,7 @@ if [ "$archiveExt" = "pkg" ]; then
|
|||||||
elif [ "$archiveExt" = "dmg" ]; then
|
elif [ "$archiveExt" = "dmg" ]; then
|
||||||
# mount the dmg
|
# mount the dmg
|
||||||
echo "Mounting $archiveName"
|
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"
|
echo "Error mounting $archiveName"
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user