mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-06 14:23:06 +01:00
fixed one printlog to many
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
# with additional ideas and contribution from Isaac Ordonez, Mann consulting
|
# with additional ideas and contribution from Isaac Ordonez, Mann consulting
|
||||||
|
|
||||||
VERSION='0.4'
|
VERSION='0.4'
|
||||||
VERSIONDATE='20200723'
|
VERSIONDATE='20200727'
|
||||||
|
|
||||||
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
export PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
||||||
|
|
||||||
@@ -1166,7 +1166,7 @@ mountDMG() {
|
|||||||
# mount the dmg
|
# mount the dmg
|
||||||
printlog "Mounting $tmpDir/$archiveName"
|
printlog "Mounting $tmpDir/$archiveName"
|
||||||
# always pipe 'Y\n' in case the dmg requires an agreement
|
# 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"
|
cleanupAndExit 3 "Error mounting $tmpDir/$archiveName"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user