From 0a96de84496b19796b236d5a269a3b4bd42412c7 Mon Sep 17 00:00:00 2001 From: Armin Briegel <1933192+scriptingosx@users.noreply.github.com> Date: Mon, 27 Jul 2020 16:16:49 +0200 Subject: [PATCH] fixed one printlog to many --- Installomator.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Installomator.sh b/Installomator.sh index adcc45b..17ff2d8 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -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