Update LibreOffice.sh

This commit is contained in:
wattsy74
2021-09-28 20:18:48 +01:00
committed by GitHub
parent cf7166301b
commit c9122d7249

View File

@@ -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/${dnldfile} ${url}
/usr/bin/curl -s -o /tmp/${appName} ${url}
if [[ "${forceQuit}" = "Y" ]]; then
killall ${appName}
fi
@@ -85,7 +85,7 @@ 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 -quiet
/usr/bin/hdiutil attach "/tmp/${appName}" -nobrowse >> ${logfile}
/bin/sleep 30
/bin/echo "`date`: Installing..." >> ${logfile}
ditto -rsrc "/Volumes/${appName}/${appName}.app" "/Applications/${appName}.app"