From a041b544194055558f2ae797efdae0ecc9bb9784 Mon Sep 17 00:00:00 2001 From: wattsy74 <49881777+wattsy74@users.noreply.github.com> Date: Tue, 28 Sep 2021 20:25:48 +0100 Subject: [PATCH] Update LibreOffice.sh --- LibreOffice.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LibreOffice.sh b/LibreOffice.sh index 4ab7531..8d03fd4 100644 --- a/LibreOffice.sh +++ b/LibreOffice.sh @@ -77,7 +77,7 @@ if [[ "${currentinstalledver}" != "${latestver}" ]]; then /bin/echo "Available ${appName} version: ${latestver}" /bin/echo "`date`: Downloading newer version." >> ${logfile} /bin/echo "Downloading newer version." - /usr/bin/curl -s -o /tmp/${appName} ${url} + /usr/bin/curl -o /tmp/${appName}.dmg ${url} if [[ "${forceQuit}" = "Y" ]]; then killall ${appName} fi @@ -85,13 +85,13 @@ if [[ "${currentinstalledver}" != "${latestver}" ]]; then # Uncomment this block for dmg & .app copy # ########################################################################## /bin/echo "`date`: Mounting installer disk image." >> ${logfile} - /usr/bin/hdiutil attach "/tmp/${appName}" -nobrowse >> ${logfile} + /usr/bin/hdiutil attach "/tmp/${appName}.dmg" -nobrowse >> ${logfile} /bin/sleep 30 /bin/echo "`date`: Installing..." >> ${logfile} ditto -rsrc "/Volumes/${appName}/${appName}.app" "/Applications/${appName}.app" /bin/sleep 30 /bin/echo "`date`: Unmounting installer disk image." >> ${logfile} - /usr/bin/hdiutil detach $(/bin/df | /usr/bin/grep ${appName} | awk '{print $9}') -quiet + /usr/bin/hdiutil detach $(/bin/df | /usr/bin/grep ${appName} | awk '{print $9}') /bin/sleep 10 ##########################################################################