From a7207bbc2123fb95bf6e67e2f2259f69f91d4989 Mon Sep 17 00:00:00 2001 From: wattsy74 <49881777+wattsy74@users.noreply.github.com> Date: Wed, 29 Sep 2021 09:05:31 +0100 Subject: [PATCH] Update LibreOffice.sh --- LibreOffice.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/LibreOffice.sh b/LibreOffice.sh index 62fdc74..a943e81 100644 --- a/LibreOffice.sh +++ b/LibreOffice.sh @@ -78,23 +78,21 @@ if [[ "${currentinstalledver}" != "${latestver}" ]]; then /bin/echo "`date`: Downloading newer version." >> ${logfile} /bin/echo "Downloading newer version." /bin/echo ${url} - curl -o /tmp/${dnldfile} ${url} + curl -o /tmp/${dnldfile} ${url} >> ${logfile} if [[ "${forceQuit}" = "Y" ]]; then killall ${appName} fi ########################################################################## # Uncomment this block for dmg & .app copy # ########################################################################## - /bin/sleep 10 /bin/echo "`date`: Mounting installer disk image." >> ${logfile} - /usr/bin/hdiutil attach /tmp/${dnldfile} -nobrowse - /bin/sleep 30 + /usr/bin/hdiutil attach /tmp/${dnldfile} -nobrowse >> ${logfile} + /bin/sleep 5 /bin/echo "`date`: Installing..." >> ${logfile} - ditto -rsrc "/Volumes/${appName}/${appName}.app" "/Applications/${appName}.app" - /bin/sleep 10 + ditto -rsrc "/Volumes/${appName}/${appName}.app" "/Applications/${appName}.app" >> ${logfile} /bin/echo "`date`: Unmounting installer disk image." >> ${logfile} - /usr/bin/hdiutil detach $(/bin/df | /usr/bin/grep ${appName} | awk '{print $9}') - /bin/sleep 10 + /usr/bin/hdiutil detach $(/bin/df | /usr/bin/grep ${appName} | awk '{print $1}') >> ${logfile} + /bin/sleep 5 ##########################################################################