fixed one printlog to many

This commit is contained in:
Armin Briegel
2020-07-27 16:16:49 +02:00
parent 7d6f4db736
commit 0a96de8449

View File

@@ -9,7 +9,7 @@
# with additional ideas and contribution from Isaac Ordonez, Mann consulting
VERSION='0.4'
VERSIONDATE='20200723'
VERSIONDATE='20200727'
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
@@ -1166,7 +1166,7 @@ mountDMG() {
# mount the dmg
printlog "Mounting $tmpDir/$archiveName"
# always pipe 'Y\n' in case the dmg requires an agreement
if ! dmgmount=$(printlog 'Y'$'\n' | hdiutil attach "$tmpDir/$archiveName" -nobrowse -readonly | tail -n 1 | cut -c 54- ); then
if ! dmgmount=$(echo 'Y'$'\n' | hdiutil attach "$tmpDir/$archiveName" -nobrowse -readonly | tail -n 1 | cut -c 54- ); then
cleanupAndExit 3 "Error mounting $tmpDir/$archiveName"
fi