From 12f4566caf113a1f880f3cb2003a9183099f68d3 Mon Sep 17 00:00:00 2001 From: Armin Briegel <1933192+scriptingosx@users.noreply.github.com> Date: Wed, 11 Mar 2020 17:01:42 +0100 Subject: [PATCH] changed disk image mount to work with images that need agreement --- buildCaseStatement.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildCaseStatement.sh b/buildCaseStatement.sh index 51409fb..b9e9edc 100755 --- a/buildCaseStatement.sh +++ b/buildCaseStatement.sh @@ -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